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

index e27447df2618e438ff0ecb6de817171341009a29..05b18893986af8bead38c3cb67a714f844dd5563 100644 (file)
@@ -261,8 +261,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;
                }