Make sure uchar is always initialized. Just use '?' since the comment indicates
authoreapache <eapache@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 24 Dec 2013 00:54:30 +0000 (00:54 +0000)
committereapache <eapache@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 24 Dec 2013 00:54:30 +0000 (00:54 +0000)
that it's a weird (undefined?) case.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@54430 f5534014-38df-0310-8fa8-9805f1628bb7

epan/tvbuff.c

index 57a5806c65bea4494a9dfc0b5dbb9ae0a4aec42b..3dc1c89944aa5ec360e5518dacf3d3df4df2ec90 100644 (file)
@@ -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;