[PATCH v2] riched20: Properly initialize variable (valgrind)

Fabian Maurer dark.shadow4 at web.de
Wed Feb 19 09:05:23 CST 2020


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48628
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
---
 dlls/riched20/editor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index c4a6902733..dc28f05f23 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -420,6 +420,7 @@ void ME_RTFCharAttrHook(RTF_Info *info)
   fmt.cbSize = sizeof(fmt);
   fmt.dwMask = 0;
   fmt.dwEffects = 0;
+  memset(fmt.szFaceName, 0, sizeof(fmt.szFaceName));

   switch(info->rtfMinor)
   {
--
2.25.1




More information about the wine-devel mailing list