(mc_fhl_read_ini_file): conditions cleanup.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-11-04 15:04:01 +03:00
parent b8a6d0e27d
commit 5324bc63bf

View File

@ -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);
}