do not segfault on empty filename to escape.

Avoid case where e_exec (and possible others) gives
e_util_filename_escape() a NULL parameter, actually another bug, but
does not hurt to safe guard this one.

By: manio



SVN revision: 40979
This commit is contained in:
Gustavo Sverzut Barbieri 2009-06-09 10:25:25 +00:00
parent 537a6e62ca
commit b5d5b3378c
1 changed files with 1 additions and 0 deletions

View File

@ -652,6 +652,7 @@ e_util_filename_escape(const char *filename)
char *q;
static char buf[4096];
if (!filename) return NULL;
p = filename;
q = buf;
while (*p)