mirror of
https://github.com/sheumann/hush.git
synced 2025-01-27 21:33:05 +00:00
Fix some typo's, remove some extra free statements
This commit is contained in:
parent
a406a9c853
commit
761ec20f81
@ -1010,17 +1010,15 @@ static void process_file(FILE * file)
|
|||||||
next_line = bb_get_chomped_line_from_file(file);
|
next_line = bb_get_chomped_line_from_file(file);
|
||||||
linenum++;
|
linenum++;
|
||||||
} else {
|
} else {
|
||||||
/* Jump to end of script and exist */
|
/* Jump to end of script and exit */
|
||||||
deleted = 1;
|
deleted = 1;
|
||||||
free(next_line);
|
|
||||||
next_line = NULL;
|
next_line = NULL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'N': /* Append the next line to the current line */
|
case 'N': /* Append the next line to the current line */
|
||||||
if (next_line == NULL) {
|
if (next_line == NULL) {
|
||||||
/* Jump to end of script and exist */
|
/* Jump to end of script and exit */
|
||||||
deleted = 1;
|
deleted = 1;
|
||||||
free(next_line);
|
|
||||||
#ifdef CONFIG_FEATURE_SED_GNU_COMPATABILITY
|
#ifdef CONFIG_FEATURE_SED_GNU_COMPATABILITY
|
||||||
/* GNU sed will add the newline character
|
/* GNU sed will add the newline character
|
||||||
* The GNU sed info page labels this as a bug that wont be fixed
|
* The GNU sed info page labels this as a bug that wont be fixed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user