elm_config: fix valgrind warnings

buf is only initializied, if on_flush is true.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D7449
This commit is contained in:
Marcel Hollerbach 2018-12-12 17:18:15 +01:00
parent 28f155a5c6
commit 2d4f25fb32
1 changed files with 1 additions and 1 deletions

View File

@ -1630,7 +1630,7 @@ _config_user_load(Eina_Bool on_flush)
_elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s/.base.flush.cfg",
_elm_profile);
if (!ecore_file_exists(buf) || !on_flush)
if ((on_flush && !ecore_file_exists(buf)) || !on_flush)
_elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s/base.cfg",
_elm_profile);