diff --git a/legacy/eina/src/lib/eina_str.c b/legacy/eina/src/lib/eina_str.c index 5c4cbf724f..97d873ed5b 100644 --- a/legacy/eina/src/lib/eina_str.c +++ b/legacy/eina/src/lib/eina_str.c @@ -76,7 +76,7 @@ eina_str_split_full_helper(const char *str, size_t len, dlen; unsigned int tokens; - EINA_SAFETY_ON_TRUE_RETURN_VAL(max_tokens < 1, NULL); + EINA_SAFETY_ON_TRUE_RETURN_VAL(max_tokens < 0, NULL); dlen = strlen(delim); if (dlen == 0) {