multipart: initialize value before function call (found by clang).
Change-Id: I0883526b064b044bbfb188e14e20cc95270f1e6a Reviewed-on: https://code.wireshark.org/review/26115 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
629e68828c
commit
21b4d6ecf1
|
@ -607,6 +607,7 @@ process_body_part(proto_tree *tree, tvbuff_t *tvb,
|
|||
|
||||
hdr_str = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, next_offset - offset, ENC_ASCII);
|
||||
|
||||
colon_offset = 0;
|
||||
header_str = unfold_and_compact_mime_header(hdr_str, &colon_offset);
|
||||
if (colon_offset <= 0) {
|
||||
/* if there is no colon it's no header, so break and add complete line to the body */
|
||||
|
|
Loading…
Reference in New Issue