From 738b57c9456a40d22210f3db92118117fc52312b Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 5 Jan 2020 21:14:25 -0500 Subject: [PATCH] pxh: initialize all fields - fixes Coverity CID 309151 --- platforms/posix/src/px4/common/px4_daemon/pxh.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/posix/src/px4/common/px4_daemon/pxh.h b/platforms/posix/src/px4/common/px4_daemon/pxh.h index 0fd6018c62..2139277530 100644 --- a/platforms/posix/src/px4/common/px4_daemon/pxh.h +++ b/platforms/posix/src/px4/common/px4_daemon/pxh.h @@ -84,9 +84,9 @@ private: void _setup_term(); static void _restore_term(); - bool _should_exit; + bool _should_exit{false}; History _history; - struct termios _orig_term; + struct termios _orig_term {}; static apps_map_type _apps; static Pxh *_instance;