diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-11-17 07:23:46 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-11-17 07:23:46 +0000 |
commit | 9c6b5fcb0a624423dc3fb4de808f4ea3118a4ad3 (patch) | |
tree | 604a011f7290a9ef0ce5cebf5243433e07b0535d /editors/sed.c | |
parent | bff7a60f6378f37d6543e60bee52746c82511d70 (diff) |
Minor warning cleanups
Diffstat (limited to 'editors/sed.c')
-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) int i; FILE *file; for (i = optind; i < argc; i++) { - if (file = wfopen(argv[i], "r")) { + file = wfopen(argv[i], "r"); + if (file) { process_file(file); fclose(file); } else |