chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
volume_id: provide libvolume_id.a file
[elogind.git]
/
klibc
/
klibc
/
getopt.c
diff --git
a/klibc/klibc/getopt.c
b/klibc/klibc/getopt.c
index 5a992dcdd7370ed83d8cef04baa77c8251f1bfea..cd534bf3047997ebb465679073fc9156afab43d5 100644
(file)
--- a/
klibc/klibc/getopt.c
+++ b/
klibc/klibc/getopt.c
@@
-51,6
+51,7
@@
int getopt(int argc, char * const *argv, const char *optstring)
optind += 2;
} else {
/* Missing argument */
+ optind++;
return (optstring[0] == ':') ? ':' : '?';
}
}