diff options
Diffstat (limited to 'sed.c')
-rw-r--r-- | sed.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -608,6 +608,10 @@ static void process_file(FILE *file) | |||
608 | * entry point into sedding... | 608 | * entry point into sedding... |
609 | */ | 609 | */ |
610 | if ( | 610 | if ( |
611 | /* no range necessary */ | ||
612 | (sed_cmds[i].beg_line == 0 && sed_cmds[i].end_line == 0 && | ||
613 | sed_cmds[i].beg_match == NULL && | ||
614 | sed_cmds[i].end_match == NULL) || | ||
611 | /* this line number is the first address we're looking for */ | 615 | /* this line number is the first address we're looking for */ |
612 | (sed_cmds[i].beg_line && (sed_cmds[i].beg_line == linenum)) || | 616 | (sed_cmds[i].beg_line && (sed_cmds[i].beg_line == linenum)) || |
613 | /* this line matches our first address regex */ | 617 | /* this line matches our first address regex */ |