]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Fix 'warning: suggest parentheses around assignment used as truth value'
authorRuediger Pluem <rpluem@apache.org>
Tue, 7 Mar 2023 08:07:05 +0000 (08:07 +0000)
committerRuediger Pluem <rpluem@apache.org>
Tue, 7 Mar 2023 08:07:05 +0000 (08:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908152 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/fs/quota.c

index 8dedfeae6107c069ac65df7611c8c7e9386c9c2b..1c278906421a957e16217efa840fad88fe0a52cd 100644 (file)
@@ -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,