aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index f08c670..0979d07 100644
--- a/utils.c
+++ b/utils.c
@@ -49,7 +49,7 @@ err_t _array_remove(void **ptr, size_t idx, size_t len, void **out)
err_t _hash(char *str, size_t len, size_t *out)
{
CHECK(str, INVALID_PARAMS)
- CHECK((len < 0), INVALID_PARAMS)
+ CHECK((len > 0), INVALID_PARAMS)
// Implements the "murmur" non-cryptographic hash