summaryrefslogtreecommitdiff
path: root/rpmbuild.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-05-18 10:59:54 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-05-18 10:59:54 +0300
commit0b36a1f18eda7a076ad1cf4553f93fe8f683d70d (patch)
tree51bbf03da893a5dc73e49e55912128e3fec38eee /rpmbuild.c
parentf4c79584d01c6394544c86c122d2f32f77a1d02d (diff)
downloadlibrpm-tizen-0b36a1f18eda7a076ad1cf4553f93fe8f683d70d.tar.gz
librpm-tizen-0b36a1f18eda7a076ad1cf4553f93fe8f683d70d.tar.bz2
librpm-tizen-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.c2
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;