From: Richard Henderson Date: Thu, 6 Apr 2023 18:38:56 +0000 (-0700) Subject: tcg: Clear TCGLabelQemuLdst on allocation X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4745b156b8412ef12af32bd474fee70c25940950;p=qemu.git tcg: Clear TCGLabelQemuLdst on allocation Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- diff --git a/tcg/tcg-ldst.c.inc b/tcg/tcg-ldst.c.inc index 6c6848d034..403cbb0f06 100644 --- a/tcg/tcg-ldst.c.inc +++ b/tcg/tcg-ldst.c.inc @@ -72,6 +72,7 @@ static inline TCGLabelQemuLdst *new_ldst_label(TCGContext *s) { TCGLabelQemuLdst *l = tcg_malloc(sizeof(*l)); + memset(l, 0, sizeof(*l)); QSIMPLEQ_INSERT_TAIL(&s->ldst_labels, l, next); return l;