aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-09-15 05:42:05 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-09-15 05:42:05 +0000
commitd6e547ab7f35982e224d8c7a3c280e0873b1a89c (patch)
treeec244cd6a097b185848c1bd4d8bdff8bb0793809
parent33f3cd01fb0c72290a44b59a671437ed03b5d814 (diff)
downloadbusybox-w32-d6e547ab7f35982e224d8c7a3c280e0873b1a89c.tar.gz
busybox-w32-d6e547ab7f35982e224d8c7a3c280e0873b1a89c.tar.bz2
busybox-w32-d6e547ab7f35982e224d8c7a3c280e0873b1a89c.zip
Fix for the sed-append-next-line test
git-svn-id: svn://busybox.net/trunk/busybox@7518 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--editors/sed.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/sed.c b/editors/sed.c
index b73d660ed..00ed20892 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1001,6 +1001,11 @@ static void process_file(FILE * file)
1001 strcat(pattern_space, next_line); 1001 strcat(pattern_space, next_line);
1002 next_line = bb_get_chomped_line_from_file(file); 1002 next_line = bb_get_chomped_line_from_file(file);
1003 linenum++; 1003 linenum++;
1004 } else {
1005 /* Jump to end of script and exist */
1006 deleted = 1;
1007 free(next_line);
1008 next_line = NULL;
1004 } 1009 }
1005 break; 1010 break;
1006 case 't': 1011 case 't':