]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/names-parse.c
libpci: windows: Define ERROR_NOT_FOUND
[pciutils.git] / lib / names-parse.c
index f3b7da9ee1897c4bfc950c50d2de9b0777038c8b..c86f8af3462f158b9ffabadffaf2dff1bcf1481a 100644 (file)
@@ -42,7 +42,7 @@ static pci_file pci_open(struct pci_access *a)
 #define pci_close(f)           gzclose(f)
 #define PCI_ERROR(f, err)                                              \
        if (!err) {                                                     \
-               int errnum;                                             \
+               int errnum = 0;                                         \
                gzerror(f, &errnum);                                    \
                if (errnum >= 0) err = NULL;                            \
                else if (errnum == Z_ERRNO) err = "I/O error";          \