diff options
author | Stefan Fritsch <sf@apache.org> | 2011-05-15 16:58:45 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-05-15 16:58:45 +0000 |
commit | 2014acf62f101c89e513d7c4fce751c929491ab0 (patch) | |
tree | f2b9c314edc5ecd712b762bcb29edf2afd6d3f48 /modules/debugging | |
parent | b9474fdfeb2afc72b2b052715d1a936700fe77fe (diff) | |
download | httpd-2014acf62f101c89e513d7c4fce751c929491ab0.tar.gz |
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')
-rw-r--r-- | modules/debugging/mod_dumpio.c | 3 |
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; |