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;