Fix for the sed-append-next-line test
This commit is contained in:
parent
65f9dc01f3
commit
73116311e5
@ -1001,6 +1001,11 @@ static void process_file(FILE * file)
|
|||||||
strcat(pattern_space, next_line);
|
strcat(pattern_space, next_line);
|
||||||
next_line = bb_get_chomped_line_from_file(file);
|
next_line = bb_get_chomped_line_from_file(file);
|
||||||
linenum++;
|
linenum++;
|
||||||
|
} else {
|
||||||
|
/* Jump to end of script and exist */
|
||||||
|
deleted = 1;
|
||||||
|
free(next_line);
|
||||||
|
next_line = NULL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
|
Loading…
Reference in New Issue
Block a user