diff options
| author | Ruediger Pluem <rpluem@apache.org> | 2022-03-08 13:01:25 +0000 |
|---|---|---|
| committer | Ruediger Pluem <rpluem@apache.org> | 2022-03-08 13:01:25 +0000 |
| commit | 5f4978a14a7ac8fc184cb03fa9332fbe07aba75f (patch) | |
| tree | 29926b128ff17e9aeb242cf6039b83c6abaaee7a /modules/lua | |
| parent | 024982eec4c565ad4c003a35bac84513a857bfb3 (diff) | |
| download | httpd-5f4978a14a7ac8fc184cb03fa9332fbe07aba75f.tar.gz | |
* Avoid "may be uninitialized" warning
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898731 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/lua')
| -rw-r--r-- | modules/lua/lua_request.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index 56573f6798..52639291ae 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -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; /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ |
