Browse Source

init var to 0 to avoid warning

Eric Andersen 24 years ago
parent
commit
79aabd53ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/unistd/gnu_getopt.c

+ 1 - 1
libc/unistd/gnu_getopt.c

@@ -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++)