OSDN Git Service

init var to 0 to avoid warning
authorEric Andersen <andersen@codepoet.org>
Mon, 15 Jan 2001 13:39:14 +0000 (13:39 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 15 Jan 2001 13:39:14 +0000 (13:39 -0000)
libc/unistd/gnu_getopt.c

index c5fa339..05f97a0 100644 (file)
@@ -413,7 +413,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
       const struct option *pfound = NULL;
       int exact = 0;
       int ambig = 0;
-      int indfound;
+      int indfound = 0;
       int option_index;
 
       for (nameend = nextchar; *nameend && *nameend != '='; nameend++)