summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/eina_str.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/eina_str.c b/src/lib/eina_str.c
index 2a54c00..3dea489 100644
--- a/src/lib/eina_str.c
+++ b/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)
{