From: Guenter Knauf Date: Wed, 6 Jul 2011 09:19:50 +0000 (+0000) Subject: Stupid CodeWarrior compiler cant initialize structs with vars. X-Git-Tag: 2.3.14^2~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=340935398f30df36c138fcd008c1d283464452cb;p=thirdparty%2Fapache%2Fhttpd.git Stupid CodeWarrior compiler cant initialize structs with vars. Submitted by NormW git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1143304 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/loggers/mod_log_debug.c b/modules/loggers/mod_log_debug.c index 588cb3f34e6..11957349cc5 100644 --- a/modules/loggers/mod_log_debug.c +++ b/modules/loggers/mod_log_debug.c @@ -188,7 +188,9 @@ static const char *cmd_log_message(cmd_parms *cmd, void *dconf_, const char *arg log_debug_dirconf *dconf = dconf_; int i, j; const char *err; - const char *args[2] = { arg2, arg3 }; + const char *args[2]; + args[0] = arg2; + args[1] = arg3; entry->msg_expr = ap_expr_parse_cmd(cmd, arg1, AP_EXPR_FLAG_STRING_RESULT| AP_EXPR_FLAG_DONT_VARY,