зеркало из https://github.com/mozilla/pjs.git
Bug 58221: don't use strlen to check if a string is of length 0.
This commit is contained in:
Родитель
78ac357c09
Коммит
615653a02f
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче