From f30b6cfdff0b9ba7ae9872df5e664e87698a24e1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 5 Dec 2013 13:52:47 +0000 Subject: [PATCH] Import bugfix from libucl. --- src/ucl/src/ucl_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ucl/src/ucl_parser.c b/src/ucl/src/ucl_parser.c index f819edee6..ffcd58902 100644 --- a/src/ucl/src/ucl_parser.c +++ b/src/ucl/src/ucl_parser.c @@ -1676,7 +1676,7 @@ ucl_state_machine (struct ucl_parser *parser) } macro_len = ucl_expand_variable (parser, ¯o_escaped, macro_start, macro_len); parser->state = UCL_STATE_AFTER_VALUE; - if (macro_escaped == macro_start) { + if (macro_escaped == NULL) { if (!macro->handler (macro_start, macro_len, macro->ud)) { return false; } -- 2.39.5