diff options
Diffstat (limited to 'src/lib/eina_str.c')
-rw-r--r-- | src/lib/eina_str.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/eina_str.c b/src/lib/eina_str.c index 2a54c00..9a1a369 100644 --- a/src/lib/eina_str.c +++ b/src/lib/eina_str.c @@ -544,6 +544,9 @@ eina_str_escape(const char *str) char *s2, *d; const char *s; + if (!str) + return NULL; + s2 = malloc((strlen(str) * 2) + 1); if (!s2) return NULL; |