diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-05-18 10:59:54 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-05-18 10:59:54 +0300 |
commit | 0b36a1f18eda7a076ad1cf4553f93fe8f683d70d (patch) | |
tree | 51bbf03da893a5dc73e49e55912128e3fec38eee /rpmbuild.c | |
parent | f4c79584d01c6394544c86c122d2f32f77a1d02d (diff) | |
download | rpm-0b36a1f18eda7a076ad1cf4553f93fe8f683d70d.tar.gz rpm-0b36a1f18eda7a076ad1cf4553f93fe8f683d70d.tar.bz2 rpm-0b36a1f18eda7a076ad1cf4553f93fe8f683d70d.zip |
Eliminate bogus ferror() checks
- fopen() returns NULL on errors, never an opened stream with error
flag set. These are leftovers from past where rpmio fd was used
instead of FILE and probably the checks were bogus even back then too.
Diffstat (limited to 'rpmbuild.c')
-rw-r--r-- | rpmbuild.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmbuild.c b/rpmbuild.c index 856798a7c..dcdf3d40b 100644 --- a/rpmbuild.c +++ b/rpmbuild.c @@ -245,7 +245,7 @@ static int isSpecFile(const char * specfile) int checking; f = fopen(specfile, "r"); - if (f == NULL || ferror(f)) { + if (f == NULL) { rpmlog(RPMLOG_ERR, _("Unable to open spec file %s: %s\n"), specfile, strerror(errno)); return 0; |