Fix an uninitialized variable warning

Not an issue in practice because that value is never used unless the accompanying isValid is true, but the compiler can't know that.
This commit is contained in:
Tamás Bálint Misius 2022-12-29 08:46:35 +01:00
parent 26eabca9de
commit c5c9c046aa
No account linked to committer's email address

View File

@ -462,7 +462,7 @@ void OptionsView::AmbientAirTempToTextBox(float airTemp)
void OptionsView::UpdateAirTemp(String temp, bool isDefocus) void OptionsView::UpdateAirTemp(String temp, bool isDefocus)
{ {
// Parse air temp and determine validity // Parse air temp and determine validity
float airTemp; float airTemp = 0;
bool isValid; bool isValid;
try try
{ {