forked from enlightenment/efl
fix annoying uninitialized value warning
SVN revision: 54699
This commit is contained in:
parent
c89cf15ed7
commit
12c4b5b595
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue