Nico Golde:
[apps/madmutt.git] / regex.c
diff --git a/regex.c b/regex.c
index c6c9850..b2755ca 100644 (file)
--- a/regex.c
+++ b/regex.c
@@ -98,6 +98,7 @@
 #include "lisp.h"
 #include "buffer.h"
 #include "syntax.h"
+#include "lib/str.h"
 
 #else /* not emacs */
 
@@ -2426,11 +2427,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 +2448,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''.  */