tree-wide: apply equals-null.cocci
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -113,7 +113,7 @@ static int dowild(const uchar *p, const uchar *text, unsigned int flags)
|
||||
/* Trailing "**" matches everything. Trailing "*" matches
|
||||
* only if there are no more slash characters. */
|
||||
if (!match_slash) {
|
||||
if (strchr((char*)text, '/') != NULL)
|
||||
if (strchr((char *)text, '/'))
|
||||
return WM_NOMATCH;
|
||||
}
|
||||
return WM_MATCH;
|
||||
|
Reference in New Issue
Block a user