summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-12 17:18:15 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-12-17 09:11:19 +0100
commit2d4f25fb3298756a024f96367fc2aeea26b1e9fe (patch)
tree0616e73af717faee28b8d3a8829e2986f3719581
parent28f155a5c6f7ef05923f3607f442ce3ebdac4740 (diff)
downloadefl-2d4f25fb3298756a024f96367fc2aeea26b1e9fe.tar.gz
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
-rw-r--r--src/lib/elementary/elm_config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index 8466faff4d..7970a92e2d 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -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);