Explicitly initialize the current only member of dec_opts.

At least some compilers will warn about not initializing the reserved
values.

Change-Id: Id907468be757a1cd3137140d285803f3e9f1724a
Reviewed-on: https://code.wireshark.org/review/21674
Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Guy Harris 2017-05-15 16:01:59 -07:00
parent 3f161e481d
commit b960f5f4c2
1 changed files with 2 additions and 1 deletions

View File

@ -835,11 +835,12 @@ dissect_kafka_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int s
LZ4F_decompressionContext_t lz4_ctxt;
LZ4F_frameInfo_t lz4_info;
LZ4F_errorCode_t ret;
LZ4F_decompressOptions_t dec_opts = {0};
LZ4F_decompressOptions_t dec_opts;
size_t src_offset, src_size, dst_size;
guchar *decompressed_buffer = NULL;
/* Prepare compressed data buffer */
dec_opts.stableDst = 0;
guint compressed_size = tvb_reported_length(raw);
guint8 *data = (guint8*)tvb_memdup(wmem_packet_scope(), raw, 0, compressed_size);
/* Override header checksum to workaround buggy Kafka implementations */