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
devs/lauromoura/property_revamp
Mike Blumenkrantz 4 years ago
parent 7a122db342
commit 8d0561ac9c
  1. 1
      src/lib/elementary/elm_main.c

@ -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…
Cancel
Save