fix q command
This commit is contained in:
parent
961c6c19da
commit
b08e3e8c2e
@ -848,8 +848,11 @@ static void process_file(FILE *file)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'q': /* Branch to end of script and quit */
|
case 'q': /* Branch to end of script and quit */
|
||||||
free(line);
|
deleted = 1;
|
||||||
return;
|
/* Exit the outer while loop */
|
||||||
|
free(next_line);
|
||||||
|
next_line = NULL;
|
||||||
|
break;
|
||||||
case 'n': /* Read next line from input */
|
case 'n': /* Read next line from input */
|
||||||
free(line);
|
free(line);
|
||||||
line = next_line;
|
line = next_line;
|
||||||
|
Loading…
Reference in New Issue
Block a user