From fc754b42ec0f0638b2970e6da3d9ad99423a02e7 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Sat, 6 Dec 2014 17:18:49 +0900 Subject: Fix a few harmless uninitialized variables Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-uninitialized.patch?expand=1 --- libwc/gb18030.c | 1 + libwc/ucs.c | 1 + 2 files changed, 2 insertions(+) (limited to 'libwc') diff --git a/libwc/gb18030.c b/libwc/gb18030.c index c195d49..d5c9018 100644 --- a/libwc/gb18030.c +++ b/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 diff --git a/libwc/ucs.c b/libwc/ucs.c index d7b6948..5e78b4e 100644 --- a/libwc/ucs.c +++ b/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; } -- cgit v1.2.3