Skip to content
Snippets Groups Projects
Commit e5ac37f1 authored by Morris Jette's avatar Morris Jette
Browse files

Eliminate warning introduced by Phil's last patch

parent d254296c
No related branches found
No related tags found
No related merge requests found
...@@ -1537,8 +1537,6 @@ void env_array_set_environment(char **env_array) ...@@ -1537,8 +1537,6 @@ void env_array_set_environment(char **env_array)
void env_unset_environment(void) void env_unset_environment(void)
{ {
extern char **environ; extern char **environ;
int rc = 0;
char **ptr; char **ptr;
char name[256], *value; char name[256], *value;
...@@ -1547,7 +1545,7 @@ void env_unset_environment(void) ...@@ -1547,7 +1545,7 @@ void env_unset_environment(void)
if ((_env_array_entry_splitter(*ptr, name, sizeof(name), if ((_env_array_entry_splitter(*ptr, name, sizeof(name),
value, ENV_BUFSIZE)) && value, ENV_BUFSIZE)) &&
(unsetenv(name) != -1)) (unsetenv(name) != -1))
rc = 1; ;
else else
ptr++; ptr++;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment