From a0657f5d6074566603ab8b50517ec96e5aa0c61a Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 30 Jan 2023 09:45:51 +0200 Subject: [PATCH] Debugger: Initialize members in WatchItem Reported by Coverity. Change-Id: I1af8a329b74f46af9cfab01749b57c031e4cd636 Reviewed-by: hjk --- src/plugins/debugger/watchdata.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/debugger/watchdata.h b/src/plugins/debugger/watchdata.h index d171c9a551e..c25e1962f9c 100644 --- a/src/plugins/debugger/watchdata.h +++ b/src/plugins/debugger/watchdata.h @@ -63,9 +63,9 @@ public: QString editformat; // Format of displayed value DebuggerEncoding editencoding; // Encoding of displayed value QString type; // Type for further processing - quint64 address; // Displayed address of the actual object - quint64 origaddr; // Address of the pointer referencing this item (gdb auto-deref) - uint size; // Size + quint64 address = 0; // Displayed address of the actual object + quint64 origaddr = 0; // Address of the pointer referencing this item (gdb auto-deref) + uint size = 0; // Size uint bitpos = 0; // Position within bit fields uint bitsize = 0; // Size in case of bit fields uint autoDerefCount = 0; // number of levels of automatic dereferencing that has taken place (for pointer types)