Fix uninitialized varialble in env.c

darcs-hash:20070122012815-ac50b-a04cfc343ce75afd4feff8e25c580f9e54d5c5ef.gz
This commit is contained in:
axel 2007-01-22 11:28:15 +10:00
parent 6ea3dd7dfe
commit 565970b8ca

5
env.c
View file

@ -888,6 +888,11 @@ int env_set( const wchar_t *key,
entry->export = 1; entry->export = 1;
has_changed_new = 1; has_changed_new = 1;
} }
else
{
entry->export = 0;
}
} }
wcscpy( entry->val, val ); wcscpy( entry->val, val );