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:
parent
537a6e62ca
commit
b5d5b3378c
|
@ -652,6 +652,7 @@ e_util_filename_escape(const char *filename)
|
||||||
char *q;
|
char *q;
|
||||||
static char buf[4096];
|
static char buf[4096];
|
||||||
|
|
||||||
|
if (!filename) return NULL;
|
||||||
p = filename;
|
p = filename;
|
||||||
q = buf;
|
q = buf;
|
||||||
while (*p)
|
while (*p)
|
||||||
|
|
Loading…
Reference in New Issue