Author: rhuijben
Date: Thu Sep  2 14:50:30 2010
New Revision: 991958

URL: http://svn.apache.org/viewvc?rev=991958&view=rev
Log:
Following up on r991239, fix a missing variable initialization error which
made it impossible to start httpd on Windows when compiling in debug mode.
(In debug/maintainer mode the compiler adds some assertion code, which
crashed httpd)

* subversion/mod_dav_svn/util.c
  (request_body_to_string): Make sure content_length is always initialized.

Modified:
    subversion/trunk/subversion/mod_dav_svn/util.c

Modified: subversion/trunk/subversion/mod_dav_svn/util.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/util.c?rev=991958&r1=991957&r2=991958&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_dav_svn/util.c (original)
+++ subversion/trunk/subversion/mod_dav_svn/util.c Thu Sep  2 14:50:30 2010
@@ -647,6 +647,9 @@ request_body_to_string(svn_string_t **re
           return HTTP_REQUEST_ENTITY_TOO_LARGE;
         }
     }
+  else
+    content_length = 0;
+
   if (limit_req_body && (limit_req_body < content_length))
     {
       ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,


Reply via email to