]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Add auto type to the parser method
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Jan 2017 09:25:41 +0000 (09:25 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Jan 2017 09:25:41 +0000 (09:25 +0000)
contrib/libucl/lua_ucl.c

index fa69c72d0dc5de54ec563fa455c993441689d36e..965dcc9c130e980e4b07d30a429df2c1395e09f3 100644 (file)
@@ -539,6 +539,9 @@ lua_ucl_str_to_parse_type (const char *str)
                                strcasecmp (str, "csexp") == 0) {
                        type = UCL_PARSE_CSEXP;
                }
+               else if (strcasecmp (str, "auto") == 0) {
+                       type = UCL_PARSE_AUTO;
+               }
        }
 
        return type;