Skip to content

Commit f7205d7

Browse files
Christophe Jailletrpluem
authored andcommitted
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 (cherry picked from commit e9d215e)
1 parent 36b5cc6 commit f7205d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/listen.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,10 @@ static const char *set_systemd_listener(process_rec *process, apr_port_t port,
370370
}
371371

372372
if (last == NULL) {
373-
ap_listeners = last = new;
373+
ap_listeners = new;
374374
}
375375
else {
376376
last->next = new;
377-
last = new;
378377
}
379378

380379
return NULL;

0 commit comments

Comments
 (0)