summaryrefslogtreecommitdiff
path: root/src/lib/elementary
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 /src/lib/elementary
parent28f155a5c6f7ef05923f3607f442ce3ebdac4740 (diff)
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
Diffstat (limited to 'src/lib/elementary')
-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)
1630 _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s/.base.flush.cfg", 1630 _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s/.base.flush.cfg",
1631 _elm_profile); 1631 _elm_profile);
1632 1632
1633 if (!ecore_file_exists(buf) || !on_flush) 1633 if ((on_flush && !ecore_file_exists(buf)) || !on_flush)
1634 _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s/base.cfg", 1634 _elm_config_user_dir_snprintf(buf, sizeof(buf), "config/%s/base.cfg",
1635 _elm_profile); 1635 _elm_profile);
1636 1636