aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-09-15 05:42:05 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-09-15 05:42:05 +0000
commit73116311e561212729debc1483c414aa184cc591 (patch)
treeec244cd6a097b185848c1bd4d8bdff8bb0793809
parent65f9dc01f35aac8ee3ee44b8369a30b118fafef9 (diff)
downloadbusybox-w32-73116311e561212729debc1483c414aa184cc591.tar.gz
busybox-w32-73116311e561212729debc1483c414aa184cc591.tar.bz2
busybox-w32-73116311e561212729debc1483c414aa184cc591.zip
Fix for the sed-append-next-line test
-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':