Skip to content

Commit

Permalink
Fix a cppcheck warning.
Browse files Browse the repository at this point in the history
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
(cherry picked from commit e9d215e)
  • Loading branch information
Christophe Jaillet authored and rpluem committed Feb 10, 2025
1 parent 36b5cc6 commit f7205d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/listen.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,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;
Expand Down

0 comments on commit f7205d7

Please sign in to comment.