Commit b0caea6e authored by Christophe Jaillet's avatar Christophe Jaillet
Browse files

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
parent 0d1550e7
Loading
Loading
Loading
Loading
+1 −2
Changes for server/listen.c: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -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;