ICU-1668 support lack of long name with 0 as the name.
X-SVN-Rev: 7522
This commit is contained in:
parent
2f384f4d3f
commit
ffddf2297f
@ -42,7 +42,7 @@ u_parseArgs(int argc, char* argv[],
|
||||
/* search for the option string */
|
||||
int j;
|
||||
for(j=0; j<optionCount; ++j) {
|
||||
if(uprv_strcmp(arg, options[j].longName)==0) {
|
||||
if(options[j].longName && uprv_strcmp(arg, options[j].longName)==0) {
|
||||
option=options+j;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user