strchr() returns a pointer not an int.
Reported by: bjk Approved by: des (blanket, implicit) MFC after: 3 days
This commit is contained in:
parent
9c9372ad3f
commit
6f1ed8ae58
@ -252,7 +252,7 @@ from_match(const char *tok, const char *string)
|
|||||||
&& strcasecmp(tok, string + str_len - tok_len) == 0)
|
&& strcasecmp(tok, string + str_len - tok_len) == 0)
|
||||||
return (YES);
|
return (YES);
|
||||||
} else if (strcmp(tok, "LOCAL") == 0) { /* local: no dots */
|
} else if (strcmp(tok, "LOCAL") == 0) { /* local: no dots */
|
||||||
if (strchr(string, '.') == 0)
|
if (strchr(string, '.') == NULL)
|
||||||
return (YES);
|
return (YES);
|
||||||
} else if (tok[(tok_len = strlen(tok)) - 1] == '.' /* network */
|
} else if (tok[(tok_len = strlen(tok)) - 1] == '.' /* network */
|
||||||
&& strncmp(tok, string, tok_len) == 0) {
|
&& strncmp(tok, string, tok_len) == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user