Browse code

core: switch(string) break/return fix

Commit 6ab93de3 (switch(string) memleak fix) broke break & return
from switch case statements.

Reported-by: Juha Heinanen jh tutpro com

Andrei Pelinescu-Onciul authored on 28/09/2010 16:09:17
Showing 1 changed files
... ...
@@ -1333,7 +1333,7 @@ sw_jt_def:
1333 1333
 						ret=run_actions(h, mct->jump[i], msg);
1334 1334
 						h->run_flags &= ~BREAK_R_F; /* catch breaks, but let
1335 1335
 													   returns passthrough */
1336
-						break;
1336
+						goto skip;
1337 1337
 					}
1338 1338
 					goto match_cleanup;
1339 1339
 				}