projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65f9dc0
)
Fix for the sed-append-next-line test
author
Glenn L McGrath
<bug1@ihug.co.nz>
Mon, 15 Sep 2003 05:42:05 +0000
(
05:42
-0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Mon, 15 Sep 2003 05:42:05 +0000
(
05:42
-0000)
editors/sed.c
patch
|
blob
|
history
diff --git
a/editors/sed.c
b/editors/sed.c
index b73d660ed7aa84de0f266ede6e85624d8d15ed6c..00ed208920e971959d60728dd72c087a008a1680 100644
(file)
--- a/
editors/sed.c
+++ b/
editors/sed.c
@@
-1001,6
+1001,11
@@
static void process_file(FILE * file)
strcat(pattern_space, next_line);
next_line = bb_get_chomped_line_from_file(file);
linenum++;
+ } else {
+ /* Jump to end of script and exist */
+ deleted = 1;
+ free(next_line);
+ next_line = NULL;
}
break;
case 't':