httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1235349 - /httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bridge.c
Date Tue, 24 Jan 2012 16:47:03 GMT
Author: trawick
Date: Tue Jan 24 16:47:03 2012
New Revision: 1235349

URL: http://svn.apache.org/viewvc?rev=1235349&view=rev
Log:
fix a couple of declaration-after-statement errors

Modified:
    httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bridge.c

Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bridge.c
URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bridge.c?rev=1235349&r1=1235348&r2=1235349&view=diff
==============================================================================
--- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bridge.c (original)
+++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_bridge.c Tue Jan 24 16:47:03 2012
@@ -480,7 +480,7 @@ static int add_request_body(request_rec 
     FCGI_Header *stdin_request_header;
     fcgid_server_conf *sconf = ap_get_module_config(r->server->module_config,
                                                     &fcgid_module);
-    int seen_eos;
+    int seen_eos = 0;
 
     /* Stdin header and body */
     /* I have to read all the request into memory before sending it
@@ -489,7 +489,6 @@ static int add_request_body(request_rec 
        But sometimes it's not acceptable (think about uploading a large attachment)
        Request will be stored in tmp file if the size larger than max_mem_request_len
      */
-    seen_eos = 0;
 
     apr_bucket_brigade *input_brigade = apr_brigade_create(request_pool,
                                                            r->connection->
@@ -516,6 +515,9 @@ static int add_request_body(request_rec 
 	
 
         while((bucket_input = APR_BRIGADE_FIRST(input_brigade)) != APR_BRIGADE_SENTINEL(input_brigade))
{
+            const char *data;
+            apr_size_t len;
+            apr_bucket *bucket_stdin;
 
             ++loop_counter;
             if((loop_counter % FCGID_BRIGADE_CLEAN_STEP) == 0) {
@@ -524,10 +526,6 @@ static int add_request_body(request_rec 
             APR_BUCKET_REMOVE(bucket_input);
             APR_BRIGADE_INSERT_TAIL(tmp_brigade, bucket_input);
 
-            const char *data;
-            apr_size_t len;
-            apr_bucket *bucket_stdin;
-
             if (APR_BUCKET_IS_EOS(bucket_input)) {
                 seen_eos = 1;
                 break;



Mime
View raw message