]> granicus.if.org Git - php/commitdiff
MFH: Compiler warning fix (patch by Joe Orton).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 11 Nov 2003 20:04:19 +0000 (20:04 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 11 Nov 2003 20:04:19 +0000 (20:04 +0000)
sapi/apache2handler/php_functions.c

index 548f08eefc0b8e455152585292b958e9d3eddaaa..0407379757ed69c39401b240c1c8715d4091ef05 100644 (file)
@@ -259,8 +259,8 @@ PHP_FUNCTION(apache_setenv)
 
        ctx = SG(server_context);
 
+       r = ctx->r;
        if (arg_count == 3 && Z_STRVAL_PP(walk_to_top)) {
-        r = ctx->r;
                while(r->prev) {
                        r = r->prev;
                }