diff options
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -650,12 +650,12 @@ static void process_file(FILE *file) | |||
650 | 650 | ||
651 | /* we print the line once, unless we were told to be quiet */ | 651 | /* we print the line once, unless we were told to be quiet */ |
652 | if (!be_quiet) | 652 | if (!be_quiet) |
653 | altered = do_subst_command(&sed_cmds[i], line); | 653 | altered |= do_subst_command(&sed_cmds[i], line); |
654 | 654 | ||
655 | /* we also print the line if we were given the 'p' flag | 655 | /* we also print the line if we were given the 'p' flag |
656 | * (this is quite possibly the second printing) */ | 656 | * (this is quite possibly the second printing) */ |
657 | if (sed_cmds[i].sub_p) | 657 | if (sed_cmds[i].sub_p) |
658 | altered = do_subst_command(&sed_cmds[i], line); | 658 | altered |= do_subst_command(&sed_cmds[i], line); |
659 | 659 | ||
660 | break; | 660 | break; |
661 | 661 | ||