Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/pax appease gcc -Wuninitialized
details: https://anonhg.NetBSD.org/src/rev/fbca493cf029
branches: trunk
changeset: 581419:fbca493cf029
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Jun 01 15:25:51 2005 +0000
description:
appease gcc -Wuninitialized
diffstat:
bin/pax/options.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (42 lines):
diff -r c59eb548b437 -r fbca493cf029 bin/pax/options.c
--- a/bin/pax/options.c Wed Jun 01 15:12:18 2005 +0000
+++ b/bin/pax/options.c Wed Jun 01 15:25:51 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: options.c,v 1.87 2005/05/15 02:04:30 christos Exp $ */
+/* $NetBSD: options.c,v 1.88 2005/06/01 15:25:51 lukem Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94";
#else
-__RCSID("$NetBSD: options.c,v 1.87 2005/05/15 02:04:30 christos Exp $");
+__RCSID("$NetBSD: options.c,v 1.88 2005/06/01 15:25:51 lukem Exp $");
#endif
#endif /* not lint */
@@ -1148,8 +1148,10 @@
break;
file = *argv++;
dir = chdname;
- } else
+ } else {
file = NULL;
+ dir = NULL;
+ }
if (file != NULL) {
FILE *fp;
char *str;
@@ -1231,8 +1233,10 @@
break;
file = *argv++;
dir = NULL;
- } else
+ } else {
file = NULL;
+ dir = NULL;
+ }
if (file != NULL) {
FILE *fp;
char *str;
Home |
Main Index |
Thread Index |
Old Index