summaryrefslogtreecommitdiffstats
path: root/modules/debugging/mod_dumpio.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-05-15 18:58:45 +0200
committerStefan Fritsch <sf@apache.org>2011-05-15 18:58:45 +0200
commit2014acf62f101c89e513d7c4fce751c929491ab0 (patch)
treef2b9c314edc5ecd712b762bcb29edf2afd6d3f48 /modules/debugging/mod_dumpio.c
parentRemove the references to apr_crypto_t where apr_crypto_block_t is already (diff)
downloadapache2-2014acf62f101c89e513d7c4fce751c929491ab0.tar.xz
apache2-2014acf62f101c89e513d7c4fce751c929491ab0.zip
Improvements found by cppcheck:
remove some unused variables and dead assignments, reduce the scope of some variables, add some parens to improve readability git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1103459 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/debugging/mod_dumpio.c')
-rw-r--r--modules/debugging/mod_dumpio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/debugging/mod_dumpio.c b/modules/debugging/mod_dumpio.c
index 901e34085f..3a6a329325 100644
--- a/modules/debugging/mod_dumpio.c
+++ b/modules/debugging/mod_dumpio.c
@@ -69,14 +69,13 @@ static void dumpit(ap_filter_t *f, apr_bucket *b, dumpio_conf_t *ptr)
#endif
const char *buf;
apr_size_t nbytes;
- apr_size_t logbytes;
apr_status_t rv = apr_bucket_read(b, &buf, &nbytes, APR_BLOCK_READ);
if (rv == APR_SUCCESS)
{
while (nbytes)
{
- logbytes = nbytes;
+ apr_size_t logbytes = nbytes;
if (logbytes > dumpio_MAX_STRING_LEN)
logbytes = dumpio_MAX_STRING_LEN;
nbytes -= logbytes;