aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/elementary
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-07 16:00:09 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:43:59 +0000
commit63592364209b4fe40d899860a75c0298890e59c9 (patch)
tree6142791c787b8e5a4d999b42bf7cd3cc76dde359 /src/bin/elementary
parentmeson build - fix build to check for environ like autofoo did (diff)
downloadefl-63592364209b4fe40d899860a75c0298890e59c9.tar.gz
elm quicklaunch - fix defines to handle no-environ case without warnings
Diffstat (limited to 'src/bin/elementary')
-rw-r--r--src/bin/elementary/quicklaunch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/elementary/quicklaunch.c b/src/bin/elementary/quicklaunch.c
index 2b6378a04d..96bbcda112 100644
--- a/src/bin/elementary/quicklaunch.c
+++ b/src/bin/elementary/quicklaunch.c
@@ -132,7 +132,9 @@ handle_run(int fd, unsigned long bytes)
}
argv = alloca(argc * sizeof(char *));
+#ifdef HAVE_ENVIRON
if (envnum > 0) envir = alloca(envnum * sizeof(char *));
+#endif
off = ((unsigned long *)(buf))[2 + argc + envnum] - sizeof(unsigned long);
cwd = (char *)(buf + off);