aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2020-12-06 19:29:51 +0100
committerMartin Mares <mj@ucw.cz>2020-12-06 19:29:51 +0100
commit3588a41c0a9adf465294031f9bd0c06bf6128e3b (patch)
treefd3149a36e86c210103e310380037e8570f9f965
parent8ae609eb2b205c0fb56812471606a86904d6f7af (diff)
parent59d840bf039dbb4b78e83964da0b5127b2d8f05b (diff)
downloadpciutils-3588a41c0a9adf465294031f9bd0c06bf6128e3b.tar.gz
Merge branch 'master' of https://github.com/nmoinvaz/pciutils
-rw-r--r--lib/names-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/names-parse.c b/lib/names-parse.c
index f3b7da9..c86f8af 100644
--- a/lib/names-parse.c
+++ b/lib/names-parse.c
@@ -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"; \