Skip to content

Commit d1bd7fa

Browse files
StefanKarpinskiKristofferC
authored andcommitted
src/jloptions.c: fix buggy use of strchr (#34432)
1 parent 0af2050 commit d1bd7fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jloptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
283283
c = o->val;
284284
goto restart_switch;
285285
}
286-
else if (strchr(shortopts, o->val)) {
286+
else if (o->val <= 0xff && strchr(shortopts, o->val)) {
287287
jl_errorf("option `-%c/--%s` is missing an argument", o->val, o->name);
288288
}
289289
else {

0 commit comments

Comments
 (0)