From 0b970371a3fe1fc18122ff1c3b79ee99d1662e0d 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 : patches-from-atys --- 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 d9033930d..3612c8b33 100644 --- a/code/ryzom/client/src/client_cfg.cpp +++ b/code/ryzom/client/src/client_cfg.cpp @@ -1108,7 +1108,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))