From 8db7d75e7eed64155132b3a2863c338fe30c5144 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 19 Dec 2016 15:43:38 +0100 Subject: [PATCH] Fixed: Uninitialized variables --HG-- branch : develop --- code/nel/src/georges/form_elm.cpp | 2 +- code/nel/src/gui/group_html.cpp | 1 + code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/nel/src/georges/form_elm.cpp b/code/nel/src/georges/form_elm.cpp index 86ad9c142..cdf6fe00b 100644 --- a/code/nel/src/georges/form_elm.cpp +++ b/code/nel/src/georges/form_elm.cpp @@ -836,7 +836,7 @@ bool CFormElm::getInternalNodeByName (CForm *form, const std::string &name, cons bool inArrayIndex = false; // Index in the array - uint arrayIndex; + uint arrayIndex = 0; // Bool next token must be an array index bool wantArrayIndex = false; diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index e6805df53..b7484ce45 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -838,6 +838,7 @@ namespace NLGUI result.R = 255 * hueToRgb(m1, m2, h + 1.0f/3.0f); result.G = 255 * hueToRgb(m1, m2, h); result.B = 255 * hueToRgb(m1, m2, h - 1.0f/3.0f); + result.A = 255; } class CNameToCol diff --git a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp index 4a06195ce..7881df9e1 100644 --- a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp +++ b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp @@ -2044,7 +2044,7 @@ int CLuaIHMRyzom::addShape(CLuaState &ls) string shape = ls.toString(1); - float x,y,z = 0.0f; + float x = 0.0f, y = 0.0f, z = 0.0f; float scale = 1.0f; string context,url,skeleton,texture = ""; bool highlight, transparency, collision = false;