]> granicus.if.org Git - apache/commitdiff
fix gcc warning
authorJeff Trawick <trawick@apache.org>
Mon, 29 Jan 2001 17:58:01 +0000 (17:58 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 29 Jan 2001 17:58:01 +0000 (17:58 +0000)
mod_include.c: In function `find_file':
mod_include.c:1281: warning: suggest parentheses around assignment used as truth value

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

modules/filters/mod_include.c

index 60927c4afeeee6565ec397aa649d8442230570b3..402006f1ccaa9eb8bbf0f24ac7235cc85b3efa0b 100644 (file)
@@ -1276,8 +1276,8 @@ static int find_file(request_rec *r, const char *directive, const char *tag,
 
             if (rr->status == HTTP_OK && rr->finfo.protection != 0) {
                 to_send = rr->filename;
-                if (rv = apr_stat(finfo, to_send, APR_FINFO_GPROT 
-                                | APR_FINFO_MIN, rr->pool) != APR_SUCCESS
+                if ((rv = apr_stat(finfo, to_send, APR_FINFO_GPROT 
+                                | APR_FINFO_MIN, rr->pool)) != APR_SUCCESS
                                                      && rv != APR_INCOMPLETE) {
                     error_fmt = "unable to get information about \"%s\" "
                         "in parsed file %s";