summaryrefslogtreecommitdiffstats
path: root/pcitool/cli.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2023-05-25 21:54:27 +0200
committerSuren A. Chilingaryan <csa@suren.me>2023-05-25 21:56:14 +0200
commit8a71f80b564195735b034f16599f3abdf8690f2e (patch)
tree5679b30941ef5487b46feb340e7a27f364f42aae /pcitool/cli.c
parentbd3d3af50f7e538ab6ee1974039896487dbcbea3 (diff)
downloadpcitool-8a71f80b564195735b034f16599f3abdf8690f2e.tar.gz
pcitool-8a71f80b564195735b034f16599f3abdf8690f2e.tar.bz2
pcitool-8a71f80b564195735b034f16599f3abdf8690f2e.tar.xz
pcitool-8a71f80b564195735b034f16599f3abdf8690f2e.zip
Tolerate some missing bits in the plugin description
Diffstat (limited to 'pcitool/cli.c')
-rw-r--r--pcitool/cli.c2
1 files changed, 1 insertions, 1 deletions
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),