diff options
author | Evan Huus <eapache@gmail.com> | 2013-12-24 00:54:30 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-12-24 00:54:30 +0000 |
commit | 5a81522aa23745199b364a987ee8a8dfc670da77 (patch) | |
tree | 556390d4d8306009f11279794dc6a1fffebcc81b | |
parent | bd8aeb9054ac6ee0aa2d395a329d312a70c86ec6 (diff) | |
download | wireshark-5a81522aa23745199b364a987ee8a8dfc670da77.tar.gz |
Make sure uchar is always initialized. Just use '?' since the comment indicates
that it's a weird (undefined?) case.
svn path=/trunk/; revision=54430
-rw-r--r-- | epan/tvbuff.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c index 57a5806c65..3dc1c89944 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -2233,6 +2233,7 @@ handle_ts_23_038_char(wmem_strbuf_t *strbuf, guint8 code_point, * table. */ saw_escape = TRUE; + uchar = '?'; } else { /* * Have we seen an escape? @@ -2240,8 +2241,9 @@ handle_ts_23_038_char(wmem_strbuf_t *strbuf, guint8 code_point, if (saw_escape) { saw_escape = FALSE; uchar = char_def_alphabet_ext_decode(code_point); - } else + } else { uchar = char_def_alphabet_decode(code_point); + } } wmem_strbuf_append_unichar(strbuf, uchar); return saw_escape; |