summaryrefslogtreecommitdiffstats
path: root/modules/dav/main/mod_dav.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/dav/main/mod_dav.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/dav/main/mod_dav.c')
-rw-r--r--modules/dav/main/mod_dav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c
index 42d3abaa75..1b18cb2833 100644
--- a/modules/dav/main/mod_dav.c
+++ b/modules/dav/main/mod_dav.c
@@ -2342,7 +2342,7 @@ static int dav_method_proppatch(request_rec *r)
/* Ignore children that are not set/remove */
if (child->ns != APR_XML_NS_DAV_ID
- || (!(is_remove = strcmp(child->name, "remove") == 0)
+ || (!(is_remove = (strcmp(child->name, "remove") == 0))
&& strcmp(child->name, "set") != 0)) {
continue;
}