Fix crash when trying to unset a parameter via the environment config file

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19008 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens
2010-04-09 08:13:29 +00:00
parent 9f35371939
commit 196852f687
+1 -1
View File
@@ -214,7 +214,7 @@ environment_override()
val_list = g_key_file_get_string_list (keyfile, "Variables",
env_vars[i], &val_count,
&error );
if (!val_list)
if ( val_count == 0 )
g_unsetenv (env_vars[i]);
else
{