Bug 58221: don't use strlen to check if a string is of length 0.

This commit is contained in:
wtc%netscape.com 2003-03-19 06:37:03 +00:00
Родитель 78ac357c09
Коммит 615653a02f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -292,7 +292,7 @@ PRInt32 main(PRInt32 argc,char **argv, char **envp)
}
if (portnumarg) {
if (PL_strlen(portnumarg) == 0) {
if (*portnumarg == 0) {
PR_fprintf(PR_STDOUT,"malformed port number supplied\n");
return(1);
}