fix annoying uninitialized value warning

SVN revision: 54699
This commit is contained in:
Mike Blumenkrantz 2010-11-18 18:45:39 +00:00
parent c89cf15ed7
commit 12c4b5b595
1 changed files with 2 additions and 1 deletions

View File

@ -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++)