Fix for the sed-append-next-line test

This commit is contained in:
Glenn L McGrath 2003-09-15 05:42:05 +00:00
parent 65f9dc01f3
commit 73116311e5

View File

@ -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':