widl: Initialize variables that are not necessarily filled in encode_type
André Hentschel
nerv at dawncrow.de
Mon Feb 20 15:06:46 CST 2017
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
This helps with reproducable builds
tools/widl/write_msft.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c
index 137bb2d..39be30b 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -2195,7 +2195,7 @@ static void add_union_typeinfo(msft_typelib_t *typelib, type_t *tunion)
static void add_typedef_typeinfo(msft_typelib_t *typelib, type_t *tdef)
{
msft_typeinfo_t *msft_typeinfo = NULL;
- int alignment, datatype1, datatype2, size, duplicate = 0;
+ int alignment = 0, datatype1 = 0, datatype2 = 0, size = 0, duplicate = 0;
type_t *type;
if (-1 < tdef->typelib_idx)
--
2.7.4
More information about the wine-patches
mailing list