X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=regex.c;h=f15550c3ee76c19ad4505460c28dd637c62faeb0;hp=9db19c585c7c6b839f5140349b7e410b23a23941;hb=36d6553c2d1a80b38e961b95ebbfe0290dd5b002;hpb=39d11f5b3feb125654d5c2a4e8f93637a12706c3 diff --git a/regex.c b/regex.c index 9db19c5..f15550c 100644 --- a/regex.c +++ b/regex.c @@ -2426,11 +2426,13 @@ static reg_errcode_t regex_compile (pattern, size, syntax, bufp) if (syntax & RE_NO_BK_PARENS) goto normal_backslash; - if (COMPILE_STACK_EMPTY) - if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) + if (COMPILE_STACK_EMPTY) { + if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) { goto normal_backslash; - else + } else { FREE_STACK_RETURN (REG_ERPAREN); + } + } handle_close: if (fixup_alt_jump) { /* Push a dummy failure point at the end of the @@ -2445,11 +2447,13 @@ static reg_errcode_t regex_compile (pattern, size, syntax, bufp) } /* See similar code for backslashed left paren above. */ - if (COMPILE_STACK_EMPTY) - if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) + if (COMPILE_STACK_EMPTY) { + if (syntax & RE_UNMATCHED_RIGHT_PAREN_ORD) { goto normal_char; - else + } else { FREE_STACK_RETURN (REG_ERPAREN); + } + } /* Since we just checked for an empty stack above, this ``can't happen''. */