From 217533f0f78e3d431b063463199aa7d958e421e2 Mon Sep 17 00:00:00 2001 From: ulukyn Date: Sat, 4 Aug 2018 23:12:05 +0200 Subject: [PATCH] Fixed: check ClientCfg.CurlCABundle is not empty before check the first char (thx nimetu) --HG-- branch : compatibility-develop --- code/ryzom/client/src/client_cfg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/client/src/client_cfg.cpp b/code/ryzom/client/src/client_cfg.cpp index c115d952d..58e4fab51 100644 --- a/code/ryzom/client/src/client_cfg.cpp +++ b/code/ryzom/client/src/client_cfg.cpp @@ -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))