ami pushed a commit to branch master.

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

commit b8ab388710ddb8a4135ceaa010364bd4c683ef15
Author: Amitesh Singh <amitesh...@samsung.com>
Date:   Wed Oct 14 09:18:01 2015 +0530

    eina: util - set tmp to NULL to fix compilation warning
    
    lib/eina/eina_util.c: In function 'eina_environment_tmp_get':
    lib/eina/eina_util.c:96:7: warning: 'tmp' may be used uninitialized in this 
function [-Wmaybe-uninitialized]
        if (!tmp) tmp = "/tmp";
           ^
---
 src/lib/eina/eina_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_util.c b/src/lib/eina/eina_util.c
index ad31475..0adc412 100644
--- a/src/lib/eina/eina_util.c
+++ b/src/lib/eina/eina_util.c
@@ -75,7 +75,7 @@ eina_environment_home_get(void)
 EAPI const char *
 eina_environment_tmp_get(void)
 {
-   char *tmp;
+   char *tmp = NULL;
 
 #ifdef _WIN32
    tmp = getenv("TMP");

-- 


Reply via email to