From: Ruediger Pluem Date: Mon, 2 Oct 2006 21:12:34 +0000 (+0000) Subject: * Fix precedence problem. X-Git-Tag: 2.3.0~2099 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9afe6d7dbb269316eda2e18ab0958df2f28efa70;p=apache * Fix precedence problem. PR: 40656 Submitted by: Larry Cipriani Reviewed by: rpluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@452212 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 51848538b2..3d487026ee 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.3.0 [Remove entries to the current 2.0 and 2.2 section below, when backported] + *) mod_mime_magic: Fix precedence problem in if statement. PR 40656. + [Larry Cipriani ] + *) mod_cache: Eliminate a bogus error in the log when a filter returns AP_FILTER_ERROR. [Niklas Edmundsson ] diff --git a/modules/metadata/mod_mime_magic.c b/modules/metadata/mod_mime_magic.c index edb62e577f..cd6279112a 100644 --- a/modules/metadata/mod_mime_magic.c +++ b/modules/metadata/mod_mime_magic.c @@ -935,7 +935,7 @@ static int apprentice(server_rec *s, apr_pool_t *p) return -1; } if ((result = apr_file_open(&f, fname, APR_READ | APR_BUFFERED, - APR_OS_DEFAULT, p) != APR_SUCCESS)) { + APR_OS_DEFAULT, p)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_ERR, result, s, MODNAME ": can't read magic file %s", fname); return -1;