forked from enlightenment/efl
Ecore file test: Fix access to uninitialized memory.
This commit is contained in:
parent
92fb2917cb
commit
4dc0aba991
|
@ -378,6 +378,7 @@ START_TEST(ecore_test_ecore_file_path)
|
|||
src_dir = getenv("PATH");
|
||||
fail_if(!src_dir);
|
||||
path = malloc(strlen(src_dir) + strlen(dup_dir) + 1);
|
||||
*path = '\0';
|
||||
strcat(path, src_dir);
|
||||
strcat(path, ":");
|
||||
strcat(path, dirname(dup_dir));
|
||||
|
|
Loading…
Reference in New Issue