summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libcamera/media_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/media_device.cpp b/src/libcamera/media_device.cpp
index ea460893..1e9024bf 100644
--- a/src/libcamera/media_device.cpp
+++ b/src/libcamera/media_device.cpp
@@ -516,7 +516,7 @@ struct media_v2_interface *MediaDevice::findInterface(const struct media_v2_topo
{
struct media_v2_link *links = reinterpret_cast<struct media_v2_link *>
(topology.ptr_links);
- unsigned int ifaceId;
+ unsigned int ifaceId = 0;
unsigned int i;
for (i = 0; i < topology.num_links; ++i) {