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
devs/princeamd/enlightenment-0.17-elive
Gustavo Sverzut Barbieri 14 years ago
parent 537a6e62ca
commit b5d5b3378c
  1. 1
      src/bin/e_utils.c

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

Loading…
Cancel
Save