zmike pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8d0561ac9c6166d05354a097e6a643062d76167c

commit 8d0561ac9c6166d05354a097e6a643062d76167c
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Fri Oct 18 13:29:51 2019 -0400

    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;

-- 


Reply via email to