Group :: Other
RPM: opencpn
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: opencpn-5.2.4-dashboard.cpp.patch
Download
Download
https://github.com/OpenCPN/OpenCPN/issues/2163
diff --git a/OpenCPN/plugins/dashboard_pi/src/dashboard_pi.cpp b/OpenCPN/plugins/dashboard_pi/src/dashboard_pi.cpp
index e8504c2..8fd4b37 100644
--- a/OpenCPN/plugins/dashboard_pi/src/dashboard_pi.cpp
+++ b/OpenCPN/plugins/dashboard_pi/src/dashboard_pi.cpp
@@ -529,7 +529,7 @@ bool dashboard_pi::DeInit( void )
}
double GetJsonDouble(wxJSONValue &value) {
- double d_ret;
+ double d_ret = 0;
if (value.IsDouble()) {
return d_ret = value.AsDouble();
}
@@ -537,6 +537,7 @@ double GetJsonDouble(wxJSONValue &value) {
int i_ret = value.AsInt();
return d_ret = i_ret;
}
+ return d_ret;
}
void dashboard_pi::Notify()