From e7d0cabb52ea4d7e8bc1829f79a27d52429c4cb6 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 5 Jun 2019 10:03:13 +0200 Subject: [PATCH] logger: fix uninitialized member variable This was reported by Coverity Scan. --- src/modules/logger/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/logger/logger.h b/src/modules/logger/logger.h index efe7861dc8..56bcfd63a6 100644 --- a/src/modules/logger/logger.h +++ b/src/modules/logger/logger.h @@ -405,7 +405,7 @@ private: will be stopped after load printing (for the full log) */ print_load_s _load{}; ///< process load data hrt_abstime _next_load_print{0}; ///< timestamp when to print the process load - PrintLoadReason _print_load_reason; + PrintLoadReason _print_load_reason {PrintLoadReason::Preflight}; param_t _sdlog_profile_handle{PARAM_INVALID}; param_t _log_utc_offset{PARAM_INVALID};