diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c index 66dfa1505..8061964ee 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -851,7 +851,8 @@ extern int sed_main(int argc, char **argv) | |||
851 | int i; | 851 | int i; |
852 | FILE *file; | 852 | FILE *file; |
853 | for (i = optind; i < argc; i++) { | 853 | for (i = optind; i < argc; i++) { |
854 | if (file = wfopen(argv[i], "r")) { | 854 | file = wfopen(argv[i], "r"); |
855 | if (file) { | ||
855 | process_file(file); | 856 | process_file(file); |
856 | fclose(file); | 857 | fclose(file); |
857 | } else | 858 | } else |