Motd reply fix.
[silc.git] / lib / contrib / getopt.c
index 1378a221ab9d05365611fe4e79848c462cce56cf..0b47ea7eccf78992d6fcd2f9233d86a104ee28fb 100644 (file)
@@ -35,6 +35,7 @@
 #endif
 
 #include <stdio.h>
+#include <string.h>
 
 /* Comment out all this code if we are using the GNU C Library, and are not
    actually compiling the library itself.  This code is part of the GNU C
@@ -460,7 +461,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
       int exact = 0;
       int ambig = 0;
       const struct option *pfound = NULL;
-      int indfound;
+      int indfound = 0;
 
       while (*s && *s != '=')
        s++;