diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-19 15:54:25 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-19 15:54:25 +0000 |
commit | 456c2f66f3e06243835d9e62b8c289265e947e61 (patch) | |
tree | 82d4a939c078e69eb624f90633b4bcddb209797b /contrib/libucl/ucl_parser.c | |
parent | d7cddc0f8c2ff449a3341b399df4c32ad7ea9803 (diff) | |
download | rspamd-456c2f66f3e06243835d9e62b8c289265e947e61.tar.gz rspamd-456c2f66f3e06243835d9e62b8c289265e947e61.zip |
[Minor] Add ability to skip setting of file vars in UCL
Diffstat (limited to 'contrib/libucl/ucl_parser.c')
-rw-r--r-- | contrib/libucl/ucl_parser.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/libucl/ucl_parser.c b/contrib/libucl/ucl_parser.c index 82c4ca24b..d6b8eb656 100644 --- a/contrib/libucl/ucl_parser.c +++ b/contrib/libucl/ucl_parser.c @@ -2461,8 +2461,10 @@ ucl_parser_new (int flags) parser->comments = ucl_object_typed_new (UCL_OBJECT); } - /* Initial assumption about filevars */ - ucl_parser_set_filevars (parser, NULL, false); + if (!(flags & UCL_PARSER_NO_FILEVARS)) { + /* Initial assumption about filevars */ + ucl_parser_set_filevars (parser, NULL, false); + } return parser; } |