chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / klibc / getopt.c
index 5a992dcdd7370ed83d8cef04baa77c8251f1bfea..cd534bf3047997ebb465679073fc9156afab43d5 100644 (file)
@@ -51,6 +51,7 @@ int getopt(int argc, char * const *argv, const char *optstring)
          optind += 2;
        } else {
          /* Missing argument */
+         optind++;
          return (optstring[0] == ':') ? ':' : '?';
        }
       }