From: Christophe Jaillet Date: Fri, 17 Aug 2018 16:51:25 +0000 (+0000) Subject: Fix a cppcheck warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9d215ef047c24423c7d3caffcbb74d88b95bf3e;p=apache Fix a cppcheck warning. Remove some dead code. Updating 'last' is pointless here. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1838271 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/listen.c b/server/listen.c index b995abe857..f8b94fa69d 100644 --- a/server/listen.c +++ b/server/listen.c @@ -396,11 +396,10 @@ static const char *set_systemd_listener(process_rec *process, apr_port_t port, } if (last == NULL) { - ap_listeners = last = new; + ap_listeners = new; } else { last->next = new; - last = new; } return NULL;