aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-09-15 04:55:29 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-09-15 04:55:29 +0000
commit640c1f547f49a574342306578852bdfe42b32542 (patch)
tree2c46c53fff2fc3d63d3ec53c7288739d773713b5 /editors
parentba5eb27ce3de593e18345caa34128fbffdde9e1d (diff)
downloadbusybox-640c1f547f49a574342306578852bdfe42b32542.tar.gz
Fix recursion problem
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c2
1 files changed, 2 insertions, 0 deletions
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':{