From a87459506604d6d1346418c44f4fdd8dab132d6c Mon Sep 17 00:00:00 2001 From: Bui Nguyen Quoc Thanh Date: Fri, 5 Jun 2020 13:38:58 +0700 Subject: UT: Fix segfault in logstorage test Signed-off-by: Bui Nguyen Quoc Thanh --- tests/gtest_dlt_daemon_offline_log.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/gtest_dlt_daemon_offline_log.cpp b/tests/gtest_dlt_daemon_offline_log.cpp index 80f7e53..f37c63a 100644 --- a/tests/gtest_dlt_daemon_offline_log.cpp +++ b/tests/gtest_dlt_daemon_offline_log.cpp @@ -512,6 +512,7 @@ TEST(t_dlt_logstorage_device_disconnected, normal) DltLogStorage handle; int reason = 0; handle.config_status = 0; + handle.newest_file_list = NULL; EXPECT_EQ(DLT_RETURN_OK, dlt_logstorage_device_disconnected(&handle, reason)); } -- cgit v1.2.1