aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-05 13:52:47 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-05 13:52:47 +0000
commitf30b6cfdff0b9ba7ae9872df5e664e87698a24e1 (patch)
tree98a5a58593067f1614e6aa694b5f4dedbbc91399
parent2ca6e26fe2e657023e53e50598f9b3b5eef39e23 (diff)
downloadrspamd-f30b6cfdff0b9ba7ae9872df5e664e87698a24e1.tar.gz
rspamd-f30b6cfdff0b9ba7ae9872df5e664e87698a24e1.zip
Import bugfix from libucl.
-rw-r--r--src/ucl/src/ucl_parser.c2
1 files changed, 1 insertions, 1 deletions
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, &macro_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;
}