Source-Changes-HG archive

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

[src/netbsd-3]: src/bin/sh Pull up revision 1.82 (requested by lukem in ticke...



details:   https://anonhg.NetBSD.org/src/rev/ff1ee87ebed2
branches:  netbsd-3
changeset: 576199:ff1ee87ebed2
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jun 13 22:03:51 2005 +0000

description:
Pull up revision 1.82 (requested by lukem in ticket #397):
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 c7a0efe038e5 -r ff1ee87ebed2 bin/sh/eval.c
--- a/bin/sh/eval.c     Mon Jun 13 22:02:36 2005 +0000
+++ b/bin/sh/eval.c     Mon Jun 13 22:03:51 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.81.2.1 2005/06/13 22:03:51 tron 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.81.2.1 2005/06/13 22:03:51 tron 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