]> granicus.if.org Git - apache/commitdiff
Fix build failure by reverting part of r953125
authorStefan Fritsch <sf@apache.org>
Wed, 9 Jun 2010 21:23:48 +0000 (21:23 +0000)
committerStefan Fritsch <sf@apache.org>
Wed, 9 Jun 2010 21:23:48 +0000 (21:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@953166 13f79535-47bb-0310-9956-ffa450edef68

include/http_log.h

index 347d7342e69055f7782c5f243d66f9fdc3ccd818..802126a7b2f1aad13259f364232279174082550c 100644 (file)
@@ -277,9 +277,10 @@ void ap_logs_child_init(apr_pool_t *p, server_rec *s);
 #if __STDC_VERSION__ >= 199901L
 /* need additional step to expand APLOG_MARK first */
 #define ap_log_error(...) ap_log_error__(__VA_ARGS__)
+/* need server_rec *sr = ... for the case if s is verbatim NULL */
 #define ap_log_error__(file, line, mi, level, status, s, ...)           \
-    do { if (APLOG_MODULE_IS_LEVEL(s, mi, level))                          \
-             ap_log_error_(file, line, mi, level, status, s, __VA_ARGS__); \
+    do { server_rec *sr = s; if (APLOG_MODULE_IS_LEVEL(sr, mi, level))      \
+             ap_log_error_(file, line, mi, level, status, sr, __VA_ARGS__); \
     } while(0)
 #else
 #define ap_log_error ap_log_error_