]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Import bugfix from libucl.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Dec 2013 13:52:47 +0000 (13:52 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Dec 2013 13:52:47 +0000 (13:52 +0000)
src/ucl/src/ucl_parser.c

index f819edee6acf6e48312da7d6a1d8a80f88beef26..ffcd58902cef78c0ae7683aa9a07601c0c16ff0d 100644 (file)
@@ -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;
                                }