You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2023/03/07 08:07:05 UTC
svn commit: r1908152 - /httpd/httpd/trunk/modules/dav/fs/quota.c
Author: rpluem
Date: Tue Mar 7 08:07:05 2023
New Revision: 1908152
URL: http://svn.apache.org/viewvc?rev=1908152&view=rev
Log:
* Fix 'warning: suggest parentheses around assignment used as truth value'
Modified:
httpd/httpd/trunk/modules/dav/fs/quota.c
Modified: httpd/httpd/trunk/modules/dav/fs/quota.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/dav/fs/quota.c?rev=1908152&r1=1908151&r2=1908152&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/dav/fs/quota.c (original)
+++ httpd/httpd/trunk/modules/dav/fs/quota.c Tue Mar 7 08:07:05 2023
@@ -320,7 +320,7 @@ int dav_fs_quota_precondition(request_re
/*
* 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,