mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 10:27:03 +00:00
Bug 58221: don't use strlen to check if a string is of length 0.
This commit is contained in:
parent
c078ee6cdc
commit
88232d00e6
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user