Make it possible to create zero length environment variable arrays without using the ENV_USER flag

darcs-hash:20060126154823-ac50b-21d0bdbd367289723cdda355cf6465264df565cf.gz
This commit is contained in:
axel 2006-01-27 01:48:23 +10:00
parent 7cd98a670b
commit 37eb6c340d

2
env.c
View File

@ -653,7 +653,7 @@ void env_set( const wchar_t *key,
/*
Zero element arrays are internaly not coded as null but as this placeholder string
*/
if( !val && ( var_mode & ENV_USER ) )
if( !val )
{
val = ENV_NULL;
}