From 07be970008d2d1a2a686f836640170aa70e54619 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 28 Aug 2012 12:37:02 +0000 Subject: null checks for str split SVN revision: 75787 --- src/lib/eina_str.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.1