diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/misc.c | 4 |
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++) { |