From: Daniel Gruno Date: Fri, 28 Mar 2014 20:33:08 +0000 (+0000) Subject: mod_lua: Since c->notes is the only place where r will be NULL, we don't need to... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeb40f7faf5714291e76d261ddfa3c80023d5722;p=thirdparty%2Fapache%2Fhttpd.git mod_lua: Since c->notes is the only place where r will be NULL, we don't need to check a second time, since we'll never meddle with tables named 'notes' git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1582877 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/lua_apr.c b/modules/lua/lua_apr.c index 70158fad799..21651ead4ff 100644 --- a/modules/lua/lua_apr.c +++ b/modules/lua/lua_apr.c @@ -48,11 +48,9 @@ static int lua_table_set(lua_State *L) while ( (badchar = ap_strchr(badchar, '\n')) ) { *badchar = ' '; } - if (t->r != NULL) { - ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, t->r, + ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, t->r, APLOGNO(02614) "mod_lua: Value for '%s' in table '%s' contains newline!", key, t->n); - } apr_table_set(t->t, key, replacement); } else {