X-Git-Url: http://git.sourceforge.jp/view?p=lha%2Flha.git;a=blobdiff_plain;f=src%2Fgetopt_long.c;h=eb32f1e2d330f75efe192a3e751515ab446408c9;hp=69f0f538e698f7b14790ab1f1e709a2eb50f4a37;hb=8a7d8661a8ed666381666578cbf95c9b1af2a55b;hpb=23e4c01321e926d01250736415fa8af2d152eec8;ds=sidebyside diff --git a/src/getopt_long.c b/src/getopt_long.c index 69f0f53..eb32f1e 100644 --- a/src/getopt_long.c +++ b/src/getopt_long.c @@ -185,7 +185,10 @@ has_argument_short(char *arg, const char *shortopts) fprintf(stderr, "getopt_long() -- unbalanced bracket in short options"); return -1; } - break; + + /* shortopts = "a[0123]b", arg = "ab" + -> "-a -b" */ + return 0; /* no argument */ default: return 0; /* no argument */ }