diff options
author | S. Hameed <shameed@jp.adit-jv.com> | 2016-11-21 14:58:45 +0900 |
---|---|---|
committer | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2019-05-06 15:55:07 +0900 |
commit | 09d49baa0e029a156392063562fb4b186011e5e7 (patch) | |
tree | 922f7e32e01fec284e6508b15831374e8bdfa9ed /src/daemon | |
parent | 40590be05c5eb99f557dfca6f7f6623dcdbe334a (diff) | |
download | DLT-daemon-09d49baa0e029a156392063562fb4b186011e5e7.tar.gz |
Offline logstorage: Fix storage handle NULL check during cleanup
Signed-off-by: S. Hameed <shameed@jp.adit-jv.com>
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/dlt_daemon_offline_logstorage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/dlt_daemon_offline_logstorage.c b/src/daemon/dlt_daemon_offline_logstorage.c index 8f78065..f915086 100644 --- a/src/daemon/dlt_daemon_offline_logstorage.c +++ b/src/daemon/dlt_daemon_offline_logstorage.c @@ -1108,7 +1108,7 @@ int dlt_daemon_logstorage_cleanup(DltDaemon *daemon, PRINT_FUNCTION_VERBOSE(verbose); - if ((daemon == NULL) || (daemon_local == NULL)) + if ((daemon == NULL) || (daemon_local == NULL) || (daemon->storage_handle == NULL)) return DLT_RETURN_WRONG_PARAMETER; for (i = 0; i < daemon_local->flags.offlineLogstorageMaxDevices; i++) |