diff --git a/legacy/eina/src/lib/eina_str.c b/legacy/eina/src/lib/eina_str.c index 2a54c00c78..3dea489216 100644 --- a/legacy/eina/src/lib/eina_str.c +++ b/legacy/eina/src/lib/eina_str.c @@ -77,6 +77,10 @@ eina_str_split_full_helper(const char *str, unsigned int tokens = 0, x; const char *idx[256] = {NULL}; + + if (!str) return NULL; + if (!delim) return NULL; + if (!elements) return NULL; if (max_tokens < 0) max_tokens = 0; if (max_tokens == 1) {