From 107e0ef0069580ed33d951a82f427575eab4e588 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 11 Jul 2014 17:47:38 +0200 Subject: [PATCH] data_test: Fixed access to uninitialized memory. --- t/unit/core/data_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/t/unit/core/data_test.c b/t/unit/core/data_test.c index 0ce93bc..e490a38 100644 --- a/t/unit/core/data_test.c +++ b/t/unit/core/data_test.c @@ -37,6 +37,7 @@ START_TEST(test_data) d2.type = SDB_TYPE_INTEGER; d2.data.integer = 4711; + memset(&d1, 0, sizeof(d1)); check = sdb_data_copy(&d1, &d2); fail_unless(!check, "sdb_data_copy() = %i; expected: 0", check); fail_unless(d1.type == d2.type, -- 2.30.2