fix possible crash 2

This commit is contained in:
Vaxry 2024-07-20 17:59:27 +02:00
parent 1c5c905c25
commit 78d11c456a
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ CLinuxDMABufV1Protocol::CLinuxDMABufV1Protocol(const wl_interface* iface, const
return;
}
} else {
LOGM(ERR, "DRM device {} has no render node!!", device->nodes[DRM_NODE_PRIMARY]);
LOGM(ERR, "DRM device {} has no render node!!", device->nodes[DRM_NODE_PRIMARY] ? device->nodes[DRM_NODE_PRIMARY] : "null");
drmFreeDevice(&device);
}
});