]> granicus.if.org Git - mutt/commitdiff
Kyle Wheeler noticed a couple of warnings in the moribund regex code. One
authorBrendan Cully <brendan@kublai.com>
Thu, 22 Dec 2005 18:40:45 +0000 (18:40 +0000)
committerBrendan Cully <brendan@kublai.com>
Thu, 22 Dec 2005 18:40:45 +0000 (18:40 +0000)
still remains that I'm too lazy to fix right now.

regex.c

diff --git a/regex.c b/regex.c
index aa3d4cc3a3fae39ff29fab85c578d6f1aaa58033..ae20447bc3d4de3d52bb521608db135c896db6b7 100644 (file)
--- a/regex.c
+++ b/regex.c
@@ -2409,10 +2409,12 @@ 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)
                   goto normal_backslash;
                 else
                   FREE_STACK_RETURN (REG_ERPAREN);
+             }
 
             handle_close:
               if (fixup_alt_jump)
@@ -2429,10 +2431,12 @@ 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)
                   goto normal_char;
                 else
                   FREE_STACK_RETURN (REG_ERPAREN);
+             }
 
               /* Since we just checked for an empty stack above, this
                  ``can't happen''.  */