From 09d49baa0e029a156392063562fb4b186011e5e7 Mon Sep 17 00:00:00 2001 From: "S. Hameed" Date: Mon, 21 Nov 2016 14:58:45 +0900 Subject: Offline logstorage: Fix storage handle NULL check during cleanup Signed-off-by: S. Hameed --- src/daemon/dlt_daemon_offline_logstorage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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++) -- cgit v1.2.1