From 2ee3e726a9f4f5b68213a68dda82599d8523db22 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 5 Apr 2016 12:59:54 +0200 Subject: [PATCH] detect: don't set unused variable detect.c:3801:13: warning: Value stored to 'tmplist2_tail' is never read tmplist2_tail = joingr; ^ ~~~~~~ detect.c:3804:13: warning: Value stored to 'tmplist2_tail' is never read tmplist2_tail = joingr; ^ ~~~~~~ 2 warnings generated. --- src/detect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detect.c b/src/detect.c index e94e2c6053..a93696fd69 100644 --- a/src/detect.c +++ b/src/detect.c @@ -3798,10 +3798,10 @@ int CreateGroupedPortList(DetectEngineCtx *de_ctx, DetectPort *port_list, Detect if (tmplist2 == NULL) { tmplist2 = joingr; - tmplist2_tail = joingr; + //tmplist2_tail = joingr; } else { tmplist2_tail->next = joingr; - tmplist2_tail = joingr; + //tmplist2_tail = joingr; } } else { SCLogDebug("no joingr"); -- 2.47.2