diff options
| author | Tatsuya Kinoshita <tats@debian.org> | 2014-12-06 08:19:46 +0000 | 
|---|---|---|
| committer | Tatsuya Kinoshita <tats@debian.org> | 2014-12-06 08:19:46 +0000 | 
| commit | 0552b86da68c8cfba25641ffe76221a7774cf7b3 (patch) | |
| tree | b721962ead37bf45d63f311301becec2e115e7e1 | |
| parent | Merge branch 'bug/textarea-segfault' (diff) | |
| parent | Fix a few harmless uninitialized variables (diff) | |
| download | w3m-0552b86da68c8cfba25641ffe76221a7774cf7b3.tar.gz w3m-0552b86da68c8cfba25641ffe76221a7774cf7b3.zip | |
Merge branch 'bug/uninitialized'
Diffstat (limited to '')
| -rw-r--r-- | anchor.c | 2 | ||||
| -rw-r--r-- | libwc/gb18030.c | 1 | ||||
| -rw-r--r-- | libwc/ucs.c | 1 | ||||
| -rw-r--r-- | regex.c | 2 | 
4 files changed, 4 insertions, 2 deletions
| @@ -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;  } @@ -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) { | 
