Even if variable is never used uninitialized by the semantic, reduce compiler
warning by giving an initial value in all cases.
This commit is contained in:
parent
35a974fdb8
commit
ce2657c007
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146755
@ -38,6 +38,7 @@ static const char copyright[] =
|
|||||||
static char sccsid[] = "@(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94";
|
static char sccsid[] = "@(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__FBSDID("$FreeBSD$");
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
@ -118,6 +119,7 @@ main(int argc, char *argv[])
|
|||||||
strcpy(prefix, _PATH_PWD);
|
strcpy(prefix, _PATH_PWD);
|
||||||
makeold = 0;
|
makeold = 0;
|
||||||
username = NULL;
|
username = NULL;
|
||||||
|
oldfp = NULL;
|
||||||
while ((ch = getopt(argc, argv, "BCLNd:ips:u:v")) != -1)
|
while ((ch = getopt(argc, argv, "BCLNd:ips:u:v")) != -1)
|
||||||
switch(ch) {
|
switch(ch) {
|
||||||
case 'B': /* big-endian output */
|
case 'B': /* big-endian output */
|
||||||
|
Loading…
Reference in New Issue
Block a user