Remove strerror() from error messages for rpmReadPackageFile() error
authorTomas Mlcoch <tmlcoch@redhat.com>
Mon, 3 Mar 2014 14:58:10 +0000 (15:58 +0100)
committerTomas Mlcoch <tmlcoch@redhat.com>
Mon, 3 Mar 2014 14:58:10 +0000 (15:58 +0100)
src/parsepkg.c

index 2587d93..c82d245 100644 (file)
@@ -105,10 +105,10 @@ read_header(const char *filename, Header *hdr, GError **err)
                         __func__, filename);
                 break;
             default:
-                g_warning("%s: rpmReadPackageFile() error (%s)",
-                          __func__, strerror(errno));
+                g_warning("%s: rpmReadPackageFile() error",
+                          __func__);
                 g_set_error(err, CR_PARSEPKG_ERROR, CRE_IO,
-                            "rpmReadPackageFile() error: %s", strerror(errno));
+                            "rpmReadPackageFile() error");
                 Fclose(fd);
                 return CRE_IO;
         }