]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Avoid "may be uninitialized" warning
authorRuediger Pluem <rpluem@apache.org>
Tue, 8 Mar 2022 13:01:25 +0000 (13:01 +0000)
committerRuediger Pluem <rpluem@apache.org>
Tue, 8 Mar 2022 13:01:25 +0000 (13:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898731 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_request.c

index 56573f6798699a01da63e7cb0cd526d2c4ae3b9f..52639291ae120f56167e84c089beb5a2d92db628 100644 (file)
@@ -244,7 +244,8 @@ static int lua_read_body(request_rec *r, const char **rbuf, apr_off_t *size,
     if (ap_should_client_block(r)) {
 
         /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
-        apr_off_t    len_read, rpos = 0;
+        apr_off_t    len_read = -1;
+        apr_off_t    rpos = 0;
         apr_off_t length = r->remaining;
         /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/