]> granicus.if.org Git - apache/commitdiff
'ap_getword_conf' can not return NULL
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 15 Dec 2013 10:26:12 +0000 (10:26 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 15 Dec 2013 10:26:12 +0000 (10:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1551010 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/mod_lua.c

index 52a75fb2821c178e969359a6d7a87a78667edda0..db1275a1b7f91f15782468f96c05fcb83faed0ab 100644 (file)
@@ -978,11 +978,11 @@ static const char *register_named_block_function_hook(const char *name,
     if (line[0]) { 
         const char *word;
         word = ap_getword_conf(cmd->temp_pool, &line);
-        if (word && *word) {
+        if (*word) {
             function = apr_pstrdup(cmd->pool, word);
         }
         word = ap_getword_conf(cmd->temp_pool, &line);
-        if (word && *word) {
+        if (*word) {
             if (!strcasecmp("early", word)) { 
                 when = AP_LUA_HOOK_FIRST;
             }