bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2d4f25fb3298756a024f96367fc2aeea26b1e9fe

commit 2d4f25fb3298756a024f96367fc2aeea26b1e9fe
Author: Marcel Hollerbach <[email protected]>
Date:   Wed Dec 12 17:18:15 2018 +0100

    elm_config: fix valgrind warnings
    
    buf is only initializied, if on_flush is true.
    
    Reviewed-by: Cedric BAIL <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D7449
---
 src/lib/elementary/elm_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

-- 


Reply via email to