From ce2657c007ea5d2a9a1560e0c1391839293790ae Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Sun, 29 May 2005 16:01:12 +0000 Subject: [PATCH] Even if variable is never used uninitialized by the semantic, reduce compiler warning by giving an initial value in all cases. --- usr.sbin/pwd_mkdb/pwd_mkdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c index 0e1003de6a91..d164d340c86c 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.c +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c @@ -38,6 +38,7 @@ static const char copyright[] = static char sccsid[] = "@(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94"; #endif /* not lint */ #endif + #include __FBSDID("$FreeBSD$"); @@ -118,6 +119,7 @@ main(int argc, char *argv[]) strcpy(prefix, _PATH_PWD); makeold = 0; username = NULL; + oldfp = NULL; while ((ch = getopt(argc, argv, "BCLNd:ips:u:v")) != -1) switch(ch) { case 'B': /* big-endian output */