From: Jeff Trawick Date: Mon, 29 Jan 2001 17:58:01 +0000 (+0000) Subject: fix gcc warning X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aeb7388571e59e2b1303a21c2c13145636381b3b;p=apache fix gcc warning 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 --- diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 60927c4afe..402006f1cc 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -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";