Ecore file test: Fix access to uninitialized memory.

This commit is contained in:
Tom Hacohen 2015-05-20 15:32:12 +01:00
parent 92fb2917cb
commit 4dc0aba991
1 changed files with 1 additions and 0 deletions

View File

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