diff options
author | Paul Smith <psmith@gnu.org> | 2004-12-05 18:09:31 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2004-12-05 18:09:31 +0000 |
commit | 6c2179059550ac8e9db87c119bc01b8b2959d2ff (patch) | |
tree | e5a68db6fa6625753a80e28ce3dbe5f0b9f4eec8 /main.c | |
parent | 6c9e53d64804a856580876f2019ce4ea1e42b4e0 (diff) | |
download | gunmake-6c2179059550ac8e9db87c119bc01b8b2959d2ff.tar.gz |
Fix bug with SHELL handling: make sure the variable struct is initialized.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -266,7 +266,7 @@ int rebuilding_makefiles = 0; /* Remember the original value of the SHELL variable, from the environment. */ -const char *env_shell = 0; +struct variable shell_var; /* The usage output. We write it this way to make life easier for the @@ -1084,7 +1084,8 @@ main (int argc, char **argv, char **envp) if (strncmp (envp[i], "SHELL=", 6) == 0) { v->export = v_noexport; - env_shell = xstrdup (ep + 1); + shell_var.name = "SHELL"; + shell_var.value = xstrdup (ep + 1); } } } |