mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #1035 from berkerpeksag/patch-1
Add missing NULL check in mask_match()
This commit is contained in:
commit
04ca271d77
@ -68,7 +68,7 @@ int mask_match(SERVER_REC *server, const char *mask,
|
|||||||
|
|
||||||
g_return_val_if_fail(server == NULL || IS_SERVER(server), FALSE);
|
g_return_val_if_fail(server == NULL || IS_SERVER(server), FALSE);
|
||||||
g_return_val_if_fail(mask != NULL && nick != NULL &&
|
g_return_val_if_fail(mask != NULL && nick != NULL &&
|
||||||
nick != NULL && host != NULL, FALSE);
|
user != NULL && host != NULL, FALSE);
|
||||||
|
|
||||||
str = !check_address(mask, &wildcards) ? (char *) nick :
|
str = !check_address(mask, &wildcards) ? (char *) nick :
|
||||||
g_strdup_printf("%s!%s@%s", nick, user, host);
|
g_strdup_printf("%s!%s@%s", nick, user, host);
|
||||||
|
Loading…
Reference in New Issue
Block a user