elm/main: fix null deref

Summary: CID 1402697

Reviewers: cedric

Reviewed By: cedric

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10449
This commit is contained in:
Mike Blumenkrantz 2019-10-18 13:29:51 -04:00
parent 7a122db342
commit 8d0561ac9c
1 changed files with 1 additions and 0 deletions

View File

@ -1348,6 +1348,7 @@ elm_quicklaunch_exe_path_get(const char *exe, const char *cwd)
const char *p, *pp;
char *buf2;
path = getenv("PATH");
if (!path) return NULL;
buf2 = alloca(strlen(path) + 1);
p = path;
pp = p;