req_resp_hdrs: add initializer (CID: 1445004).

Change-Id: I827efe9aa9d7c8342df6d356e4caa12dbe74d095
Reviewed-on: https://code.wireshark.org/review/33148
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Dario Lombardo 2019-05-10 18:45:13 +02:00 committed by Peter Wu
parent faf191edc1
commit 25e19aefcf
1 changed files with 1 additions and 2 deletions

View File

@ -29,7 +29,7 @@ req_resp_hdrs_do_reassembly(tvbuff_t *tvb, const int offset, packet_info *pinfo,
const gboolean desegment_headers, const gboolean desegment_body,
gboolean desegment_until_fin)
{
gint next_offset;
gint next_offset = offset;
gint next_offset_sav;
gint length_remaining, reported_length_remaining;
int linelen;
@ -79,7 +79,6 @@ req_resp_hdrs_do_reassembly(tvbuff_t *tvb, const int offset, packet_info *pinfo,
* for one).
*/
if (desegment_headers && pinfo->can_desegment) {
next_offset = offset;
for (;;) {
next_offset_sav = next_offset;