File w3m-uninitialized.patch of Package w3m.openSUSE_Leap_42.1_Update
---
anchor.c | 2 +-
libwc/gb18030.c | 1 +
libwc/ucs.c | 1 +
regex.c | 2 +-
4 files changed, 4 insertions(+), 2 deletions(-)
Index: anchor.c
===================================================================
--- anchor.c.orig
+++ anchor.c
@@ -11,7 +11,7 @@ putAnchor(AnchorList *al, char *url, cha
{
int n, i, j;
Anchor *a;
- BufferPoint bp;
+ BufferPoint bp = { 0 };
if (al == NULL) {
al = New(AnchorList);
al->anchors = NULL;
Index: libwc/gb18030.c
===================================================================
--- libwc/gb18030.c.orig
+++ libwc/gb18030.c
@@ -151,6 +151,7 @@ wc_ucs_to_gb18030(wc_uint32 ucs)
return cc;
}
cc.ccs = WC_CCS_UNKNOWN;
+ cc.code = 0;
return cc;
}
#endif
Index: libwc/ucs.c
===================================================================
--- libwc/ucs.c.orig
+++ libwc/ucs.c
@@ -100,6 +100,7 @@ wc_ucs_to_any(wc_uint32 ucs, wc_table *t
return t->conv(t->ccs, map->code2);
}
cc.ccs = WC_CCS_UNKNOWN;
+ cc.code = 0;
return cc;
}
Index: regex.c
===================================================================
--- regex.c.orig
+++ regex.c
@@ -77,7 +77,7 @@ static longchar
set_longchar(char *str)
{
unsigned char *p = (unsigned char *)str;
- longchar r;
+ longchar r = { };
#ifdef USE_M17N
if (*p & 0x80) {