This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository efl.

View the commit online.

commit 2b510aeb301a8372ecb593e669ff3ba1f4898ac6
Author: Carsten Haitzler <ras...@rasterman.com>
AuthorDate: Sun Jun 30 00:23:59 2024 +0100

    evas gl - fix segv added by home get changes in prev commit
---
 src/modules/evas/engines/gl_common/evas_gl_file_cache.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_file_cache.c b/src/modules/evas/engines/gl_common/evas_gl_file_cache.c
index 8d704b6e20..3366b7e6a8 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_file_cache.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_file_cache.c
@@ -64,17 +64,16 @@ evas_gl_common_file_cache_mkpath(const char *path)
 int
 evas_gl_common_file_cache_dir_check(char *cache_dir, int num)
 {
-   char *home;
-   char *subdir = ".cache/evas_gl_common_caches";
+   const char *home;
+   const char *subdir = ".cache/evas_gl_common_caches";
 
 #if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
    if (getuid() != geteuid()) return EINA_FALSE;
 #endif
-   home = (char *)eina_environment_home_get();
+   home = eina_environment_home_get();
    if (!home) return EINA_FALSE;
 
    snprintf(cache_dir, num, "%s/%s", home, subdir);
-   free(home);
    return evas_gl_common_file_cache_file_exists(cache_dir);
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to