aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2014-12-06 08:27:03 +0000
committerTatsuya Kinoshita <tats@debian.org>2014-12-06 08:27:35 +0000
commita92c0cd7b755744c7487a1b60881a15f5407919c (patch)
tree2c8a20680306d167621303be46e6dfa580fd2969
parentNew patch 410_textarea-segfault.patch to prevent segfault (diff)
downloadw3m-a92c0cd7b755744c7487a1b60881a15f5407919c.tar.gz
w3m-a92c0cd7b755744c7487a1b60881a15f5407919c.zip
New patch 420_uninitialized.patch to fix uninitialized variables
Diffstat (limited to '')
-rw-r--r--debian/patches/420_uninitialized.patch54
-rw-r--r--debian/patches/series1
2 files changed, 55 insertions, 0 deletions
diff --git a/debian/patches/420_uninitialized.patch b/debian/patches/420_uninitialized.patch
new file mode 100644
index 0000000..d1ee41d
--- /dev/null
+++ b/debian/patches/420_uninitialized.patch
@@ -0,0 +1,54 @@
+Subject: Fix a few harmless uninitialized variables
+Author: Olaf Hering <olh@suse.de>
+Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-uninitialized.patch?expand=1
+
+diff --git a/anchor.c b/anchor.c
+index 39f221d..a353bb9 100644
+--- a/anchor.c
++++ b/anchor.c
+@@ -11,7 +11,7 @@ putAnchor(AnchorList *al, char *url, char *target, Anchor **anchor_return,
+ {
+ int n, i, j;
+ Anchor *a;
+- BufferPoint bp;
++ BufferPoint bp = { 0 };
+ if (al == NULL) {
+ al = New(AnchorList);
+ al->anchors = NULL;
+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;
+ }
+
+diff --git a/regex.c b/regex.c
+index 5bee4b2..5675d09 100644
+--- a/regex.c
++++ b/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) {
diff --git a/debian/patches/series b/debian/patches/series
index 0ebe702..240202e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -40,6 +40,7 @@
390_gdk-pixbuf.patch
400_w3m-img-freebsd.patch
410_textarea-segfault.patch
+420_uninitialized.patch
800_lang-en.patch
810_lang-de.patch
820_lang-ja.patch