Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sup/source "errs" might be clobbered by longjmp, so...
details: https://anonhg.NetBSD.org/src/rev/7c88d8e59ced
branches: trunk
changeset: 779017:7c88d8e59ced
user: martin <martin%NetBSD.org@localhost>
date: Wed Apr 25 22:35:00 2012 +0000
description:
"errs" might be clobbered by longjmp, so declare it volatile.
diffstat:
usr.sbin/sup/source/supscan.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 28d663bb8e18 -r 7c88d8e59ced usr.sbin/sup/source/supscan.c
--- a/usr.sbin/sup/source/supscan.c Wed Apr 25 19:58:07 2012 +0000
+++ b/usr.sbin/sup/source/supscan.c Wed Apr 25 22:35:00 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: supscan.c,v 1.21 2012/04/25 18:07:45 christos Exp $ */
+/* $NetBSD: supscan.c,v 1.22 2012/04/25 22:35:00 martin Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@@ -171,7 +171,7 @@
main(int argc, char **argv)
{
SCAN_COLLECTION * volatile c; /* Avoid longjmp clobbering */
- int errs;
+ volatile int errs;
#ifdef RLIMIT_DATA
struct rlimit dlim;
Home |
Main Index |
Thread Index |
Old Index