summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2023-03-07 09:07:05 +0100
committerRuediger Pluem <rpluem@apache.org>2023-03-07 09:07:05 +0100
commit26c00bfaf2ce4031b648b3a48c282b2ce96d1c64 (patch)
tree739a3a54ba5c1f5317728a48c2b900f0f6af59d9
parent* Add a 'be' [skip ci] (diff)
downloadapache2-26c00bfaf2ce4031b648b3a48c282b2ce96d1c64.tar.xz
apache2-26c00bfaf2ce4031b648b3a48c282b2ce96d1c64.zip
* Fix 'warning: suggest parentheses around assignment used as truth value'
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908152 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/dav/fs/quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dav/fs/quota.c b/modules/dav/fs/quota.c
index 8dedfeae61..1c27890642 100644
--- a/modules/dav/fs/quota.c
+++ b/modules/dav/fs/quota.c
@@ -320,7 +320,7 @@ int dav_fs_quota_precondition(request_rec *r,
/*
* If PUT has Content-Length, we can forecast overquota
*/
- if (lenhdr = apr_table_get(r->headers_in, "Content-Length")) {
+ if ((lenhdr = apr_table_get(r->headers_in, "Content-Length"))) {
if (!ap_parse_strict_length(&size, lenhdr)) {
status = HTTP_BAD_REQUEST;
*err = dav_new_error(r->pool, status, 0, 0,