null checks for str split

SVN revision: 75787
This commit is contained in:
Mike Blumenkrantz 2012-08-28 12:37:02 +00:00
parent 0d5d5af271
commit 30c27d515c
1 changed files with 4 additions and 0 deletions

View File

@ -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)
{