Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh Mark temp_path volatile so that it won't get clobbere...



details:   https://anonhg.NetBSD.org/src/rev/0871af37cab3
branches:  trunk
changeset: 581424:0871af37cab3
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 01 15:38:32 2005 +0000

description:
Mark temp_path volatile so that it won't get clobbered after longjmp.
(Also appeases gcc -Wuninitialized.)

diffstat:

 bin/sh/eval.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d8f8b0dd3131 -r 0871af37cab3 bin/sh/eval.c
--- a/bin/sh/eval.c     Wed Jun 01 15:34:15 2005 +0000
+++ b/bin/sh/eval.c     Wed Jun 01 15:38:32 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eval.c,v 1.81 2005/03/02 20:57:31 dsl Exp $    */
+/*     $NetBSD: eval.c,v 1.82 2005/06/01 15:38:32 lukem Exp $  */
 
 /*-
  * Copyright (c) 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)eval.c     8.9 (Berkeley) 6/8/95";
 #else
-__RCSID("$NetBSD: eval.c,v 1.81 2005/03/02 20:57:31 dsl Exp $");
+__RCSID("$NetBSD: eval.c,v 1.82 2005/06/01 15:38:32 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -686,7 +686,7 @@
        volatile int e;
        char *lastarg;
        const char *path = pathval();
-       int temp_path;
+       volatile int temp_path;
 #if __GNUC__
        /* Avoid longjmp clobbering */
        (void) &argv;



Home | Main Index | Thread Index | Old Index