lastenv is only used in setenv.

Prevents an unused variable warning on platforms that have setenv but
not unsetenv.
This commit is contained in:
Darren Tucker 2021-07-27 17:45:34 +10:00
parent a1f78e08bd
commit 0f494236b4
1 changed files with 2 additions and 0 deletions

View File

@ -39,7 +39,9 @@
#include <string.h> #include <string.h>
extern char **environ; extern char **environ;
#ifndef HAVE_SETENV
static char **lastenv; /* last value of environ */ static char **lastenv; /* last value of environ */
#endif
/* OpenSSH Portable: __findenv is from getenv.c rev 1.8, made static */ /* OpenSSH Portable: __findenv is from getenv.c rev 1.8, made static */
/* /*