diff options
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -577,12 +577,7 @@ static int do_subst_command(const struct sed_cmd *sed_cmd, const char *line) | |||
577 | break; | 577 | break; |
578 | } | 578 | } |
579 | 579 | ||
580 | /* if there's anything left of the line, print it */ | 580 | puts(hackline); |
581 | if (*hackline) | ||
582 | puts(hackline); | ||
583 | /* otherwise, we need to print a newline */ | ||
584 | else | ||
585 | printf("\n"); | ||
586 | 581 | ||
587 | /* cleanup */ | 582 | /* cleanup */ |
588 | free(regmatch); | 583 | free(regmatch); |