Fix a few harmless uninitialized variables
Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory/w3m/w3m-uninitialized.patch?expand=1
This commit is contained in:
committed by
Tatsuya Kinoshita
parent
a1b70ec952
commit
fc754b42ec
2
anchor.c
2
anchor.c
@@ -11,7 +11,7 @@ putAnchor(AnchorList *al, char *url, char *target, Anchor **anchor_return,
|
|||||||
{
|
{
|
||||||
int n, i, j;
|
int n, i, j;
|
||||||
Anchor *a;
|
Anchor *a;
|
||||||
BufferPoint bp;
|
BufferPoint bp = { 0 };
|
||||||
if (al == NULL) {
|
if (al == NULL) {
|
||||||
al = New(AnchorList);
|
al = New(AnchorList);
|
||||||
al->anchors = NULL;
|
al->anchors = NULL;
|
||||||
|
|||||||
@@ -151,6 +151,7 @@ wc_ucs_to_gb18030(wc_uint32 ucs)
|
|||||||
return cc;
|
return cc;
|
||||||
}
|
}
|
||||||
cc.ccs = WC_CCS_UNKNOWN;
|
cc.ccs = WC_CCS_UNKNOWN;
|
||||||
|
cc.code = 0;
|
||||||
return cc;
|
return cc;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ wc_ucs_to_any(wc_uint32 ucs, wc_table *t)
|
|||||||
return t->conv(t->ccs, map->code2);
|
return t->conv(t->ccs, map->code2);
|
||||||
}
|
}
|
||||||
cc.ccs = WC_CCS_UNKNOWN;
|
cc.ccs = WC_CCS_UNKNOWN;
|
||||||
|
cc.code = 0;
|
||||||
return cc;
|
return cc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user