OSDN Git Service

If a shortopt is configured out right before a bare longopt, the option parsing infra...
authorRob Landley <rob@landley.net>
Sun, 3 May 2015 17:41:05 +0000 (12:41 -0500)
committerRob Landley <rob@landley.net>
Sun, 3 May 2015 17:43:58 +0000 (12:43 -0500)
commit5640acb50da707b404e00e9a20ba3fb3ec334a91
treec7383f1a8ee39c0f2b0d33ca03bc69e2b22040b0
parent38a5493031bca46263038964a8f5b188d7e9304e
If a shortopt is configured out right before a bare longopt, the option parsing infrastructure segfaults because there's no next shortopt but the list isn't empty. (There was a test for this, but we're simultaneously traversing two lists and it was testing the wrong one.)
scripts/mkflags.c