From: Sebastian Harl Date: Fri, 11 Jul 2014 15:47:38 +0000 (+0200) Subject: data_test: Fixed access to uninitialized memory. X-Git-Tag: sysdb-0.3.0~56 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=107e0ef0069580ed33d951a82f427575eab4e588;p=sysdb.git data_test: Fixed access to uninitialized memory. --- 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,