diff --git a/src/detect-content.c b/src/detect-content.c index 58344ee4cf..3e384ebc95 100644 --- a/src/detect-content.c +++ b/src/detect-content.c @@ -1029,6 +1029,8 @@ int DetectContentChunksGetTotalLength(SigMatch *sm) void DetectContentPrintAll(SigMatch *sm) { if (SCLogDebugEnabled()) { + int i = 0; + if (sm == NULL) return;