X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fmatcher_parser_parse.y;h=415d1548b0ec640a09bd05229d9425d805058a91;hp=419109c39238e2228c002ca1bef9586aff2ca55d;hb=1c0d997c1a12e0916e34aaadc6eb5d3a8cc129bb;hpb=1c0f3472481bea30aa56c8dd7f9f035cd6af944a diff --git a/src/matcher_parser_parse.y b/src/matcher_parser_parse.y index 419109c39..415d1548b 100644 --- a/src/matcher_parser_parse.y +++ b/src/matcher_parser_parse.y @@ -73,6 +73,7 @@ void matcher_parserrestart(FILE *input_file); void matcher_parser_init(void); void matcher_parser_switch_to_buffer(void * new_buffer); void matcher_parser_delete_buffer(void * b); +void matcher_parserpop_buffer_state(void); int matcher_parserlex(void); void matcher_parser_start_parsing(FILE *f) @@ -102,6 +103,7 @@ FilteringProp *matcher_parser_get_filtering(gchar *str) matcher_parserlineno = 1; matcher_parse_op = MATCHER_PARSE_NO_EOL; matcher_parserrestart(NULL); + matcher_parserpop_buffer_state(); matcher_parser_init(); bufstate = matcher_parser_scan_string((const char *) tmp_str); matcher_parser_switch_to_buffer(bufstate); @@ -146,6 +148,7 @@ MatcherList *matcher_parser_get_name(gchar *str) matcher_parserlineno = 1; matcher_parse_op = MATCHER_PARSE_NAME; matcher_parserrestart(NULL); + matcher_parserpop_buffer_state(); matcher_parser_init(); bufstate = matcher_parser_scan_string(str); matcher_parserparse(); @@ -168,6 +171,7 @@ MatcherList *matcher_parser_get_enabled(gchar *str) matcher_parserlineno = 1; matcher_parse_op = MATCHER_PARSE_ENABLED; matcher_parserrestart(NULL); + matcher_parserpop_buffer_state(); matcher_parser_init(); bufstate = matcher_parser_scan_string(str); matcher_parserparse(); @@ -190,6 +194,7 @@ MatcherList *matcher_parser_get_account(gchar *str) matcher_parserlineno = 1; matcher_parse_op = MATCHER_PARSE_ACCOUNT; matcher_parserrestart(NULL); + matcher_parserpop_buffer_state(); matcher_parser_init(); bufstate = matcher_parser_scan_string(str); matcher_parserparse(); @@ -213,6 +218,7 @@ MatcherList *matcher_parser_get_cond(gchar *str, gboolean *is_fast) matcher_parserlineno = 1; matcher_parse_op = MATCHER_PARSE_CONDITION; matcher_parserrestart(NULL); + matcher_parserpop_buffer_state(); matcher_parser_init(); bufstate = matcher_parser_scan_string(str); matcher_parserparse(); @@ -237,6 +243,7 @@ GSList *matcher_parser_get_action_list(gchar *str) matcher_parserlineno = 1; matcher_parse_op = MATCHER_PARSE_FILTERING_ACTION; matcher_parserrestart(NULL); + matcher_parserpop_buffer_state(); matcher_parser_init(); bufstate = matcher_parser_scan_string(str); matcher_parserparse();