diff options
author | Richard Hughes <richard@hughsie.com> | 2016-08-27 08:31:06 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-08-27 08:31:06 +0100 |
commit | 96a4385236b91539ac6ce12cdbb85094e01d4986 (patch) | |
tree | 08114407172ca2bac8c01f4cddbccbf00d4cf092 /libappstream-builder | |
parent | 67f486be685533602eba085fc4accdabda6be4bf (diff) | |
download | appstream-glib-96a4385236b91539ac6ce12cdbb85094e01d4986.tar.gz |
trivial: Actually apply the warning flags
Diffstat (limited to 'libappstream-builder')
-rw-r--r-- | libappstream-builder/asb-package-rpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-builder/asb-package-rpm.c b/libappstream-builder/asb-package-rpm.c index 9c14dd1..ef80584 100644 --- a/libappstream-builder/asb-package-rpm.c +++ b/libappstream-builder/asb-package-rpm.c @@ -450,7 +450,7 @@ asb_package_rpm_open (AsbPackage *pkg, const gchar *filename, GError **error) ts = rpmtsCreate (); rpmtsSetVSFlags (ts, _RPMVSF_NODIGESTS | _RPMVSF_NOSIGNATURES); fd = Fopen (filename, "r"); - if (fd <= 0) { + if (fd == NULL) { ret = FALSE; g_set_error (error, ASB_PLUGIN_ERROR, |