summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_file.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-05-20 15:32:12 +0100
committerTom Hacohen <tom@stosb.com>2015-05-20 16:27:00 +0100
commit4dc0aba991f53088d7236c7f82ea2927a731bd17 (patch)
tree564d845106a3171e63ad2616b74aa0ea28868c11 /src/tests/ecore/ecore_test_ecore_file.c
parent92fb2917cba7b91a83fbfd39b876d585921d6d3e (diff)
Ecore file test: Fix access to uninitialized memory.
Diffstat (limited to '')
-rw-r--r--src/tests/ecore/ecore_test_ecore_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_file.c b/src/tests/ecore/ecore_test_ecore_file.c
index ce8c7a8146..88382643c4 100644
--- a/src/tests/ecore/ecore_test_ecore_file.c
+++ b/src/tests/ecore/ecore_test_ecore_file.c
@@ -378,6 +378,7 @@ START_TEST(ecore_test_ecore_file_path)
378 src_dir = getenv("PATH"); 378 src_dir = getenv("PATH");
379 fail_if(!src_dir); 379 fail_if(!src_dir);
380 path = malloc(strlen(src_dir) + strlen(dup_dir) + 1); 380 path = malloc(strlen(src_dir) + strlen(dup_dir) + 1);
381 *path = '\0';
381 strcat(path, src_dir); 382 strcat(path, src_dir);
382 strcat(path, ":"); 383 strcat(path, ":");
383 strcat(path, dirname(dup_dir)); 384 strcat(path, dirname(dup_dir));