From 353bb704551c0f07c8082672af4731f56bde25a7 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Thu, 18 Nov 2010 18:45:39 +0000 Subject: [PATCH] fix annoying uninitialized value warning git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@54699 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_file/ecore_file_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_file/ecore_file_path.c b/src/lib/ecore_file/ecore_file_path.c index 983aa49..63ef319 100644 --- a/src/lib/ecore_file/ecore_file_path.c +++ b/src/lib/ecore_file/ecore_file_path.c @@ -36,7 +36,8 @@ _ecore_file_path_from_env(const char *env) if (!env_tmp) return path; - env_path = alloca(strlen(env_tmp) + 1); + env_path = alloca(sizeof(char) * strlen(env_tmp) + 1); + memset(env_path, 0, strlen(env_tmp)); strcpy(env_path, env_tmp); last = env_path; for (p = env_path; *p; p++) -- 2.7.4