From e9f21885b3d93ad396f534ff0c136c728b59edcc Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 11 Jun 2021 16:53:23 -0400 Subject: [PATCH] Corrected an error in initNodeClient in ext2spice that uses TTMaskSetMask() like = instead of |=, which doesn't work because the mask is uninitialized. --- ext2spice/ext2spice.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext2spice/ext2spice.h b/ext2spice/ext2spice.h index ea423a51..4a30d847 100644 --- a/ext2spice/ext2spice.h +++ b/ext2spice/ext2spice.h @@ -132,7 +132,8 @@ typedef struct { #define initNodeClient(node) \ { \ (node)->efnode_client = (ClientData) mallocMagic((unsigned) (sizeof(nodeClient))); \ - (( nodeClient *)(node)->efnode_client)->spiceNodeName = NULL; \ + (( nodeClient *)(node)->efnode_client)->spiceNodeName = NULL; \ + TTMaskZero (&((nodeClient *) (node)->efnode_client)->m_w.visitMask); \ TTMaskSetMask(&(((nodeClient *)(node)->efnode_client)->m_w.visitMask), &initMask);\ }