From 97389572538d8d01c60311de8bfab41ec282daba Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 5 Apr 2021 14:33:36 +0200 Subject: [PATCH] Fixed a potential problem with an uninitialized variable. --- es-app/src/views/gamelist/DetailedGameListView.cpp | 2 +- es-app/src/views/gamelist/GridGameListView.cpp | 2 +- es-app/src/views/gamelist/VideoGameListView.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/es-app/src/views/gamelist/DetailedGameListView.cpp b/es-app/src/views/gamelist/DetailedGameListView.cpp index f89154669..6094e0e31 100644 --- a/es-app/src/views/gamelist/DetailedGameListView.cpp +++ b/es-app/src/views/gamelist/DetailedGameListView.cpp @@ -324,7 +324,7 @@ void DetailedGameListView::updateInfoPanel() mPlayCount.setVisible(true); } - bool fadingOut; + bool fadingOut = false; if (file == nullptr) { fadingOut = true; } diff --git a/es-app/src/views/gamelist/GridGameListView.cpp b/es-app/src/views/gamelist/GridGameListView.cpp index ecb1741fb..8dacc6322 100644 --- a/es-app/src/views/gamelist/GridGameListView.cpp +++ b/es-app/src/views/gamelist/GridGameListView.cpp @@ -446,7 +446,7 @@ void GridGameListView::updateInfoPanel() mPlayCount.setVisible(true); } - bool fadingOut; + bool fadingOut = false; if (file == nullptr) { fadingOut = true; } diff --git a/es-app/src/views/gamelist/VideoGameListView.cpp b/es-app/src/views/gamelist/VideoGameListView.cpp index 25db97df0..08f5ee041 100644 --- a/es-app/src/views/gamelist/VideoGameListView.cpp +++ b/es-app/src/views/gamelist/VideoGameListView.cpp @@ -349,7 +349,7 @@ void VideoGameListView::updateInfoPanel() mPlayCount.setVisible(true); } - bool fadingOut; + bool fadingOut = false; if (file == nullptr) { mVideoPlaying = false; fadingOut = true;