From e6d2a1985760084837a7740d8ef9273abee2917b Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 23 Jan 2023 21:08:17 +0200 Subject: [PATCH] backends/drm: Fix custom mode generation maxSizeRefreshRate is uninitialized. BUG: 463619 --- src/backends/drm/drm_connector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/drm_connector.cpp b/src/backends/drm/drm_connector.cpp index 6f08327ceb..6a1bdd3200 100644 --- a/src/backends/drm/drm_connector.cpp +++ b/src/backends/drm/drm_connector.cpp @@ -371,7 +371,7 @@ QList> DrmConnector::generateCommonModes() { QList> ret; QSize maxSize; - uint32_t maxSizeRefreshRate; + uint32_t maxSizeRefreshRate = 0; for (const auto &mode : std::as_const(m_driverModes)) { if (mode->size().width() >= maxSize.width() && mode->size().height() >= maxSize.height() && mode->refreshRate() >= maxSizeRefreshRate) { maxSize = mode->size();