Commit 6f7f330a authored by Eric Covener's avatar Eric Covener
Browse files

move the assignment to the end of the loop.

This is more readable and isn't miscompiled w/ -O3 on a certain
unnamed EBCDIC platforms compiler.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1840678 13f79535-47bb-0310-9956-ffa450edef68
parent 69a49ab5
Loading
Loading
Loading
Loading
+2 −1
Changes for server/vhost.c: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -1041,7 +1041,6 @@ static int update_server_from_aliases(request_rec *r)
                goto found;
            }
        }
        last_s = s;

        /* Fallback: does it match the virthost from the sar? */
        if (!strcasecmp(host, sar->virthost)) {
@@ -1050,6 +1049,8 @@ static int update_server_from_aliases(request_rec *r)
                virthost_s = s;
            }
        }

        last_s = s;
    }

    /* If ServerName and ServerAlias check failed, we end up here.  If it