From e2712448ffc8cce7653b4d31895e5394386e5ef8 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 2b6378a..96bbcda 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); -- 2.7.4