summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-08-28 12:37:02 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-08-28 12:37:02 +0000
commit07be970008d2d1a2a686f836640170aa70e54619 (patch)
tree40f4d7d63af382d35f9b6ad3171ab0b85ac215e3
parent7f20c53bec5434a809c124ce5228a11b10a90796 (diff)
null checks for str split
SVN revision: 75787
-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,
77 unsigned int tokens = 0, x; 77 unsigned int tokens = 0, x;
78 const char *idx[256] = {NULL}; 78 const char *idx[256] = {NULL};
79 79
80
81 if (!str) return NULL;
82 if (!delim) return NULL;
83 if (!elements) return NULL;
80 if (max_tokens < 0) max_tokens = 0; 84 if (max_tokens < 0) max_tokens = 0;
81 if (max_tokens == 1) 85 if (max_tokens == 1)
82 { 86 {