summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-10-14 09:18:01 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2015-10-14 09:19:35 +0530
commitb8ab388710ddb8a4135ceaa010364bd4c683ef15 (patch)
treed724161786a03ce5c8406c912fa06940d91522d4
parentc22fa8a96ac7c28f93856a8577825b78be9b5270 (diff)
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"; ^
-rw-r--r--src/lib/eina/eina_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_util.c b/src/lib/eina/eina_util.c
index ad31475590..0adc412008 100644
--- a/src/lib/eina/eina_util.c
+++ b/src/lib/eina/eina_util.c
@@ -75,7 +75,7 @@ eina_environment_home_get(void)
75EAPI const char * 75EAPI const char *
76eina_environment_tmp_get(void) 76eina_environment_tmp_get(void)
77{ 77{
78 char *tmp; 78 char *tmp = NULL;
79 79
80#ifdef _WIN32 80#ifdef _WIN32
81 tmp = getenv("TMP"); 81 tmp = getenv("TMP");