@@ -1271,11 +1271,12 @@ char *re_compile_pattern(regex, size, bufp)
12711271 }
12721272 case Rbol :
12731273 {
1274- if (!beginning_context )
1274+ if (!beginning_context ) {
12751275 if (regexp_context_indep_ops )
12761276 goto op_error ;
12771277 else
12781278 goto normal_char ;
1279+ }
12791280 opcode = Cbol ;
12801281 goto store_opcode ;
12811282 }
@@ -1289,23 +1290,25 @@ char *re_compile_pattern(regex, size, bufp)
12891290 ((regexp_syntax & RE_NO_BK_PARENS )?
12901291 (regex [pos ] == ')' ):
12911292 (pos + 1 < size && regex [pos ] == '\134' &&
1292- regex [pos + 1 ] == ')' ))))
1293+ regex [pos + 1 ] == ')' )))) {
12931294 if (regexp_context_indep_ops )
12941295 goto op_error ;
12951296 else
12961297 goto normal_char ;
1298+ }
12971299 opcode = Ceol ;
12981300 goto store_opcode ;
12991301 /* NOTREACHED */
13001302 break ;
13011303 }
13021304 case Roptional :
13031305 {
1304- if (beginning_context )
1306+ if (beginning_context ) {
13051307 if (regexp_context_indep_ops )
13061308 goto op_error ;
13071309 else
13081310 goto normal_char ;
1311+ }
13091312 if (CURRENT_LEVEL_START == pattern_offset )
13101313 break ; /* ignore empty patterns for ? */
13111314 ALLOC (3 );
@@ -1316,11 +1319,12 @@ char *re_compile_pattern(regex, size, bufp)
13161319 case Rstar :
13171320 case Rplus :
13181321 {
1319- if (beginning_context )
1322+ if (beginning_context ) {
13201323 if (regexp_context_indep_ops )
13211324 goto op_error ;
13221325 else
13231326 goto normal_char ;
1327+ }
13241328 if (CURRENT_LEVEL_START == pattern_offset )
13251329 break ; /* ignore empty patterns for + and * */
13261330 ALLOC (9 );
@@ -2061,11 +2065,12 @@ int re_search(bufp,
20612065 else
20622066 dir = 1 ;
20632067
2064- if (anchor == 2 )
2068+ if (anchor == 2 ) {
20652069 if (pos != 0 )
20662070 return -1 ;
20672071 else
20682072 range = 0 ;
2073+ }
20692074
20702075 for (; range >= 0 ; range -- , pos += dir )
20712076 {
0 commit comments