From 8a71f80b564195735b034f16599f3abdf8690f2e Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 25 May 2023 21:54:27 +0200 Subject: Tolerate some missing bits in the plugin description --- pcitool/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcitool/cli.c') diff --git a/pcitool/cli.c b/pcitool/cli.c index b267c5b..7e641da 100644 --- a/pcitool/cli.c +++ b/pcitool/cli.c @@ -980,7 +980,7 @@ void Info(pcilib_t *handle, const pcilib_model_description_t *model_info, const if (info) { printf(" %s\n", entry->d_name); for (j = 0; info[j].name; j++) { - pcilib_version_t version = info[j].api->version; + pcilib_version_t version = info[j].api?info[j].api->version:0; printf(" %-12s %u.%u.%u - %s\n", info[j].name, PCILIB_VERSION_GET_MAJOR(version), PCILIB_VERSION_GET_MINOR(version), -- cgit v1.2.3