From c1600f6a02629d89cc5a2a42acfa1b75cfef535c Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Wed, 18 Apr 2012 21:27:36 +0000 Subject: [PATCH] For a local variable in a macro, use a name that is less likely to clash with other variable names. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1327689 13f79535-47bb-0310-9956-ffa450edef68 --- include/http_log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/http_log.h b/include/http_log.h index 922500f1e1..77991fca7f 100644 --- a/include/http_log.h +++ b/include/http_log.h @@ -363,8 +363,8 @@ AP_DECLARE(void) ap_log_error(const char *file, int line, int module_index, #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 { const server_rec *sr = s; if (APLOG_MODULE_IS_LEVEL(sr, mi, level)) \ - ap_log_error_(file, line, mi, level, status, sr, __VA_ARGS__); \ + do { const 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_ -- 2.40.0