summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>2020-05-28 14:16:53 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-07-06 10:04:07 +0900
commit4fc46e455a306db32848311043af5ecdbc2a2ee9 (patch)
tree5b192cbd3f1e83d813146fc0757ca5bd9c91b814
parent16b8a01b258b2132015accbd395f377fe7dc2acf (diff)
downloadDLT-daemon-4fc46e455a306db32848311043af5ecdbc2a2ee9.tar.gz
daemon: Fix smoketest
- Fix wrong allocation of memory while preparing table Signed-off-by: Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>
-rw-r--r--src/offlinelogstorage/dlt_offline_logstorage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/offlinelogstorage/dlt_offline_logstorage.c b/src/offlinelogstorage/dlt_offline_logstorage.c
index 374bbb6..09f7c06 100644
--- a/src/offlinelogstorage/dlt_offline_logstorage.c
+++ b/src/offlinelogstorage/dlt_offline_logstorage.c
@@ -798,7 +798,7 @@ DLT_STATIC int dlt_logstorage_prepare_table(DltLogStorage *handle,
if (handle->newest_file_list == NULL)
handle->newest_file_list = new_tmp;
else
- tmp->next = new_tmp;
+ handle->newest_file_list->next = new_tmp;
}
}