summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2018-08-17 18:51:25 +0200
committerChristophe Jaillet <jailletc36@apache.org>2018-08-17 18:51:25 +0200
commite9d215ef047c24423c7d3caffcbb74d88b95bf3e (patch)
tree2dc842eb4ab4e968619c66c6b3ce52ee3d5c8821
parentFix a cppcheck warning. (diff)
downloadapache2-e9d215ef047c24423c7d3caffcbb74d88b95bf3e.tar.xz
apache2-e9d215ef047c24423c7d3caffcbb74d88b95bf3e.zip
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
-rw-r--r--server/listen.c3
1 files changed, 1 insertions, 2 deletions
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;