mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Return -1 from null-test to comply with the rest of strarray_find
This commit is contained in:
parent
66e9c4bb39
commit
27c37cb3f3
@ -169,8 +169,8 @@ int strarray_find(char **array, const char *item)
|
||||
char **tmp;
|
||||
int index;
|
||||
|
||||
g_return_val_if_fail(array != NULL, 0);
|
||||
g_return_val_if_fail(item != NULL, 0);
|
||||
g_return_val_if_fail(array != NULL, -1);
|
||||
g_return_val_if_fail(item != NULL, -1);
|
||||
|
||||
index = 0;
|
||||
for (tmp = array; *tmp != NULL; tmp++, index++) {
|
||||
|
Loading…
Reference in New Issue
Block a user