mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user