Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37883252
en ru br
ALT Linux repositórios
S:5.8.2-alt1

Group :: Other
RPM: opencpn

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: opencpn-5.2.4-dashboard.cpp.patch
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()
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009