Fixed: check ClientCfg.CurlCABundle is not empty before check the first char (thx nimetu)

--HG--
branch : compatibility-develop
hg/compatibility-develop
ulukyn 7 years ago
parent 0fe98e8150
commit 217533f0f7

@ -1079,7 +1079,7 @@ void CClientConfig::setValues()
ClientCfg.CurlMaxConnections = 2;
READ_STRING_FV(CurlCABundle);
if (ClientCfg.CurlCABundle[0] == '%') // Path is relative to client_default.cfg path (used by ryzom patch)
if (!ClientCfg.CurlCABundle.empty() && ClientCfg.CurlCABundle[0] == '%') // Path is relative to client_default.cfg path (used by ryzom patch)
{
string defaultConfigFileName;
if (ClientCfg.getDefaultConfigLocation(defaultConfigFileName))

Loading…
Cancel
Save