]> granicus.if.org Git - apache/commitdiff
Fix a cppcheck warning.
authorChristophe Jaillet <jailletc36@apache.org>
Fri, 17 Aug 2018 16:51:25 +0000 (16:51 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Fri, 17 Aug 2018 16:51:25 +0000 (16:51 +0000)
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

server/listen.c

index b995abe857d74a315a0be452b00a4ffaf336a173..f8b94fa69d8b087c1ee9e390df0faab62acdef8c 100644 (file)
@@ -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;