Browse Source

- Fixed possible uninitialized scalar variable usage (spotted by Coverity)

pull/502/head
Felipe Pena 13 years ago
parent
commit
33d377e701
  1. 2
      ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c
  2. 2
      ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.c
  3. 2
      ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.c
  4. 2
      ext/mbstring/libmbfl/mbfl/mbfilter.c

2
ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c

@ -142,7 +142,7 @@ const struct mbfl_convert_vtbl vtbl_wchar_2022jp_kddi = {
int
mbfl_filt_conv_2022jp_mobile_wchar(int c, mbfl_convert_filter *filter)
{
int c1, s, w, snd;
int c1, s, w, snd = 0;
retry:
switch (filter->status & 0xf) {

2
ext/mbstring/libmbfl/filters/mbfilter_sjis_2004.c

@ -134,7 +134,7 @@ int
mbfl_filt_conv_jis2004_wchar(int c, mbfl_convert_filter *filter)
{
int k;
int c1, c2, s, s1, s2, w = 0, w1;
int c1, c2, s, s1 = 0, s2 = 0, w = 0, w1;
retry:
switch (filter->status & 0xf) {

2
ext/mbstring/libmbfl/filters/mbfilter_sjis_mobile.c

@ -605,7 +605,7 @@ mbfilter_unicode2sjis_emoji_sb(int c, int *s1, mbfl_convert_filter *filter)
int
mbfl_filt_conv_sjis_mobile_wchar(int c, mbfl_convert_filter *filter)
{
int c1, s, s1, s2, w;
int c1, s, s1 = 0, s2 = 0, w;
int snd = 0;
retry:

2
ext/mbstring/libmbfl/mbfl/mbfilter.c

@ -985,7 +985,7 @@ mbfl_strpos(
{
int result;
mbfl_string _haystack_u8, _needle_u8;
const mbfl_string *haystack_u8, *needle_u8;
const mbfl_string *haystack_u8, *needle_u8 = NULL;
const unsigned char *u8_tbl;
if (haystack == NULL || haystack->val == NULL || needle == NULL || needle->val == NULL) {

Loading…
Cancel
Save