]> granicus.if.org Git - apache/commitdiff
add some parens to quiet a gcc warning:
authorJeff Trawick <trawick@apache.org>
Thu, 26 Sep 2002 11:35:47 +0000 (11:35 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 26 Sep 2002 11:35:47 +0000 (11:35 +0000)
proxy_http.c:866: warning: suggest parentheses around assignment used as truth value

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96983 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_http.c

index 05881edfa1369a9ba9ca330de9c724e2356c9188..115251602d34ff88d7092cdef83fe325a558b843 100644 (file)
@@ -863,7 +863,7 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
       if ((r->status == 401) && (conf->error_override != 0)) {
           const char *buf;
           const char *wa = "WWW-Authenticate";
-          if (buf = apr_table_get(r->headers_out, wa)) {
+          if ((buf = apr_table_get(r->headers_out, wa))) {
               apr_table_set(r->err_headers_out, wa, buf);
           } else {
               ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,