From 791314cb1bce761fc0e49e3ad5988e434b9de68e Mon Sep 17 00:00:00 2001 From: Stefan Dunca Date: Tue, 1 Oct 2019 12:08:43 +0200 Subject: [PATCH] Fix uninitialized variable that might cause an undefined behavior CentOS crash stacktrace: --- src/QGCMapPalette.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QGCMapPalette.h b/src/QGCMapPalette.h index 25a1bd90f..d14cbb4ab 100644 --- a/src/QGCMapPalette.h +++ b/src/QGCMapPalette.h @@ -64,7 +64,7 @@ signals: void lightColorsChanged(bool lightColors); private: - bool _lightColors; + bool _lightColors = false; static const int _cColorGroups = 2; -- 2.22.0