mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(mc_fhl_read_ini_file): conditions cleanup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
b8a6d0e27d
commit
5324bc63bf
@ -184,20 +184,11 @@ mc_fhl_read_ini_file (mc_fhl_t * fhl, const gchar * filename)
|
||||
if (fhl == NULL || filename == NULL || !exist_file (filename))
|
||||
return FALSE;
|
||||
|
||||
if (fhl->config) {
|
||||
|
||||
if (!mc_config_read_file (fhl->config, filename))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
if (fhl->config != NULL)
|
||||
return mc_config_read_file (fhl->config, filename);
|
||||
|
||||
fhl->config = mc_config_init (filename);
|
||||
|
||||
if (fhl->config == NULL)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
return (fhl->config != NULL);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user