From 63592364209b4fe40d899860a75c0298890e59c9 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 7 Nov 2018 16:00:09 +0000 Subject: [PATCH] elm quicklaunch - fix defines to handle no-environ case without warnings --- src/bin/elementary/quicklaunch.c | 2 ++ 1 file changed, 2 insertions(+) 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);