From: Victor Julien Date: Tue, 5 Apr 2016 10:59:54 +0000 (+0200) Subject: detect: don't set unused variable X-Git-Tag: suricata-3.1RC1~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ee3e726a9f4f5b68213a68dda82599d8523db22;p=thirdparty%2Fsuricata.git 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. --- 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");