Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst fix check against errstr to use the ri...



details:   https://anonhg.NetBSD.org/src/rev/abe3b0a5c5d2
branches:  trunk
changeset: 766987:abe3b0a5c5d2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Jul 06 01:18:08 2011 +0000

description:
fix check against errstr to use the right variable.  GCC 4.5 rightly
complained that err (the libc function) is always not NULL.

diffstat:

 distrib/utils/sysinst/run.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d4c1d2086967 -r abe3b0a5c5d2 distrib/utils/sysinst/run.c
--- a/distrib/utils/sysinst/run.c       Tue Jul 05 23:02:31 2011 +0000
+++ b/distrib/utils/sysinst/run.c       Wed Jul 06 01:18:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: run.c,v 1.67 2011/05/30 14:20:19 joerg Exp $   */
+/*     $NetBSD: run.c,v 1.68 2011/07/06 01:18:08 mrg Exp $     */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -677,7 +677,7 @@
        if (actionwin != NULL) {
                if (actionwin != stdscr)
                        delwin(actionwin);
-               if (err == 0 || !(flags & RUN_NO_CLEAR)) {
+               if (errstr == 0 || !(flags & RUN_NO_CLEAR)) {
                        wclear(stdscr);
                        touchwin(stdscr);
                        clearok(stdscr, 1);



Home | Main Index | Thread Index | Old Index