ICU-1668 support lack of long name with 0 as the name.

X-SVN-Rev: 7522
This commit is contained in:
Yves Arrouye 2002-01-29 20:02:14 +00:00
parent 2f384f4d3f
commit ffddf2297f

View File

@ -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;
}