mirror of https://github.com/MidnightCommander/mc
mc_config_get_string_raw(): if default parameter is NULL, then no any config entities will be created
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
808988b1f1
commit
5b63c39459
|
@ -140,7 +140,8 @@ mc_config_get_string_raw (const mc_config_t * mc_config, const gchar * group,
|
|||
|
||||
if (!mc_config_has_param (mc_config, group, param))
|
||||
{
|
||||
mc_config_set_string (mc_config, group, param, def ? def : "");
|
||||
if (def != NULL)
|
||||
mc_config_set_string (mc_config, group, param, def);
|
||||
return g_strdup (def);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue