forked from enlightenment/efl
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:
parent
7a122db342
commit
8d0561ac9c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue