From 1b054d46d25b3db7ccb9244aa169de34b619cd99 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 12 Mar 2019 14:51:51 +0100 Subject: Correct use of uninitialized dt_d.num_rd and delete reported by valgrind. Signed-off-by: Pavel Pisa --- qtmips_machine/core.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qtmips_machine') diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp index 2d52203..45b08ec 100644 --- a/qtmips_machine/core.cpp +++ b/qtmips_machine/core.cpp @@ -621,6 +621,7 @@ void Core::dtDecodeInit(struct dtDecode &dt) { dt.memctl = AC_NONE; dt.num_rs = 0; dt.num_rt = 0; + dt.num_rd = 0; dt.val_rs = 0; dt.val_rt = 0; dt.rwrite = 0; -- cgit v1.2.3