* environ.cc (environ_init): Alloc space for TERM if it is not set, like all of

the other environment variables.
This commit is contained in:
Christopher Faylor 2004-12-03 23:49:06 +00:00
parent a2b1a849d1
commit e9efc27020
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-12-03 Christopher Faylor <cgf@timesys.com>
* environ.cc (environ_init): Alloc space for TERM if it is not set,
like all of the other environment variables.
2004-12-02 Christopher Faylor <cgf@timesys.com>
* child_info.h (child_info_fork::parent_wr_proc_pipe): New element.

View File

@ -746,7 +746,7 @@ environ_init (char **envp, int envc)
}
if (!sawTERM)
envp[i++] = cygterm;
envp[i++] = strdup (cygterm);
envp[i] = NULL;
FreeEnvironmentStrings (rawenv);