From: Anoop Saldanha Date: Wed, 14 Nov 2012 09:29:40 +0000 (+0530) Subject: fix uninit var usage in hhd X-Git-Tag: suricata-1.4beta3~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1cabae0f4e3a0dd663ba4a1a63b7f797eaeda25;p=thirdparty%2Fsuricata.git fix uninit var usage in hhd --- diff --git a/src/detect-engine-hhd.c b/src/detect-engine-hhd.c index 745e41283e..d5c21f5d11 100644 --- a/src/detect-engine-hhd.c +++ b/src/detect-engine-hhd.c @@ -89,6 +89,7 @@ static uint8_t *DetectEngineHHDGetBufferForTX(int tx_id, uint8_t flags, uint32_t *buffer_len) { + uint8_t *headers_buffer = NULL; int index = 0; *buffer_len = 0; @@ -135,7 +136,7 @@ static uint8_t *DetectEngineHHDGetBufferForTX(int tx_id, goto end; htp_header_t *h = NULL; - uint8_t *headers_buffer = det_ctx->hhd_buffers[index]; + headers_buffer = det_ctx->hhd_buffers[index]; size_t headers_buffer_len = 0; table_iterator_reset(headers);