From: Glenn L McGrath Date: Mon, 15 Sep 2003 04:55:29 +0000 (-0000) Subject: Fix recursion problem X-Git-Tag: 1_00_pre4~184 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=640c1f547f49a574342306578852bdfe42b32542;p=oweals%2Fbusybox.git Fix recursion problem --- diff --git a/editors/sed.c b/editors/sed.c index 43395b392..b73d660ed 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -1014,6 +1014,8 @@ static void process_file(FILE * file) } else { sed_cmd = branch_to(sed_cmd->label); } + /* Reset the substitution flag */ + substituted = 0; } break; case 'y':{