]> granicus.if.org Git - apache/commitdiff
mod_lua: Since c->notes is the only place where r will be NULL, we don't need to...
authorDaniel Gruno <humbedooh@apache.org>
Fri, 28 Mar 2014 20:33:08 +0000 (20:33 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 28 Mar 2014 20:33:08 +0000 (20:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1582877 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_apr.c

index 70158fad79949672f0cbbfc1395948f2910d3d7e..21651ead4ffc1fa4afe15a588c3db8496f541997 100644 (file)
@@ -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 {