elm quicklaunch - fix defines to handle no-environ case without warnings

This commit is contained in:
Carsten Haitzler 2018-11-07 16:00:09 +00:00
parent 3a18900441
commit 6359236420
1 changed files with 2 additions and 0 deletions

View File

@ -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);