From 154a8b1ed99a8ecae937ec8b3b7d063661a915a9 Mon Sep 17 00:00:00 2001 From: Gurvinder Singh Date: Sun, 27 Jun 2010 09:15:22 +0200 Subject: [PATCH] fixed the build failure with profiling enabled --- src/detect-engine-state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detect-engine-state.c b/src/detect-engine-state.c index 77533799d3..c077b95115 100644 --- a/src/detect-engine-state.c +++ b/src/detect-engine-state.c @@ -390,6 +390,7 @@ int DeStateDetectContinueDetection(ThreadVars *tv, DetectEngineCtx *de_ctx, Dete SigIntId cnt = 0; SigIntId store_cnt = 0; DeStateStore *store = NULL; + int match = 0; char umatch = 0; char uinspect = 0; char dmatch = 0; @@ -422,6 +423,7 @@ int DeStateDetectContinueDetection(ThreadVars *tv, DetectEngineCtx *de_ctx, Dete dinspect = 0; appinspect = 0; appmatch = 0; + match = 0; SCLogDebug("internal id of signature to inspect: %"PRIuMAX, (uintmax_t)item->sid); @@ -483,7 +485,6 @@ int DeStateDetectContinueDetection(ThreadVars *tv, DetectEngineCtx *de_ctx, Dete /* next, check the other sig matches */ if (item->nm != NULL) { SigMatch *sm; - int match = 0; for (sm = item->nm; sm != NULL; sm = sm->next) { match = sigmatch_table[sm->type].AppLayerMatch(tv, det_ctx, f, flags, alstate, s, sm);