aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2018-02-26 14:00:56 +0100
committerAnders Broman <a.broman58@gmail.com>2018-02-27 09:03:25 +0000
commit21b4d6ecf1e287658565092720870f0b6aba1c15 (patch)
tree95b7e32e260a4b46de79d0d6e1782edb788a54ab
parent629e68828c3fe751c1e00d033227f23ccc3bb0f8 (diff)
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>
-rw-r--r--epan/dissectors/packet-multipart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-multipart.c b/epan/dissectors/packet-multipart.c
index 2363aef5b4..c3dc824f43 100644
--- a/epan/dissectors/packet-multipart.c
+++ b/epan/dissectors/packet-multipart.c
@@ -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 */