From 8d0561ac9c6166d05354a097e6a643062d76167c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 18 Oct 2019 13:29:51 -0400 Subject: [PATCH] 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 --- src/lib/elementary/elm_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c index cd9803a518..069d1ceb11 100644 --- a/src/lib/elementary/elm_main.c +++ b/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;