summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJari Matilainen <jari.matilainen@gmail.com>2016-03-13 22:04:59 +0100
committerJari Matilainen <jari.matilainen@gmail.com>2016-03-14 22:17:17 +0100
commit27c37cb3f39578b473a0684e6e55bf23d1910903 (patch)
tree30393a6c4a8109bdaff7edcc50ed2089e2ad763f /src
parent66e9c4bb39ed5c0b2d9b81e8610e894af82abd8e (diff)
downloadirssi-27c37cb3f39578b473a0684e6e55bf23d1910903.zip
Return -1 from null-test to comply with the rest of strarray_find
Diffstat (limited to 'src')
-rw-r--r--src/core/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/misc.c b/src/core/misc.c
index aaa470f5..c26610ec 100644
--- a/src/core/misc.c
+++ b/src/core/misc.c
@@ -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++) {