elm/main: fix null deref
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 18 Oct 2019 17:29:51 +0000 (13:29 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 11 Nov 2019 02:18:26 +0000 (11:18 +0900)
Summary: CID 1402697

Reviewers: cedric

Reviewed By: cedric

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10449

src/lib/elementary/elm_main.c

index 1cad7f6..0e83b2b 100644 (file)
@@ -1388,6 +1388,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;