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
parent c078ee6cdc
commit 88232d00e6

View File

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