From cc35c506ba48c59e7ed66c157d2aaa262a19eed2 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Fri, 8 Apr 2022 09:18:16 +0900 Subject: [PATCH] fix: fix memory corruption /home/abuild/rpmbuild/BUILD/capi-system-system-settings-0.0.5/tests/sst_gtest_normal_font.cpp:88: Failure Expected equality of these values: SYSTEM_SETTINGS_ERROR_NONE Which is: 0 ret Which is: -5 double free or corruption (out) Aborted (core dumped) Change-Id: If2e2e5f66fbe1289104160d745aeb3dc3fecbe1c --- tests/sst_gtest_normal_font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sst_gtest_normal_font.cpp b/tests/sst_gtest_normal_font.cpp index 7cb060b..4ced494 100644 --- a/tests/sst_gtest_normal_font.cpp +++ b/tests/sst_gtest_normal_font.cpp @@ -76,7 +76,7 @@ TEST(SstFontTest, setFontSizeERR) } TEST(SstFontTest, getDefaultfont) { - char *val; + char *val = NULL; sst_interface *iface; sstm_system_info_get_platform_bool_setup(true); -- 2.7.4