Skip to content

Commit 08c5173

Browse files
authored
Merge pull request #23 from aurel32/toke-getopt
toke: fix getopt with invalid combined short options
2 parents fa98d80 + 82d41b1 commit 08c5173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toke/toke.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ static void get_args( int argc, char **argv )
298298
/* Distinguish between a '?' from the user
299299
* and one getopt() returned
300300
*/
301-
if ( argv[argindx][1] != '?' )
301+
if ( optopt )
302302
{
303303
inval_opt = TRUE;
304304
break;

0 commit comments

Comments
 (0)