raster pushed a commit to branch master.

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

commit 2ec2d9735601076a773443f159b8f4f4b6dbdc85
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Nov 6 17:01:47 2018 +0000

    eina vpath - warning - fix constness of string pointer
    
    fixes bad const usage, butnot an actual bug.
---
 src/lib/eina/eina_vpath.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/eina/eina_vpath.c b/src/lib/eina/eina_vpath.c
index 16d0eedb5f..50dfeb7092 100644
--- a/src/lib/eina/eina_vpath.c
+++ b/src/lib/eina/eina_vpath.c
@@ -161,9 +161,9 @@ _eina_vpath_interface_sys_init(void)
    home = eina_environment_home_get();
    if (!home)
      {
-        home = _fallback_home_dir();
-        _eina_vpath_data_add("home", home);
-        free(home);
+        char *home2 = _fallback_home_dir();
+        _eina_vpath_data_add("home", home2);
+        free(home2);
      }
    else
      _eina_vpath_data_add("home", home);

-- 


Reply via email to