From: Nabil Ghodbane Date: Thu, 4 May 2023 14:45:45 +0000 (+0200) Subject: spns #33658: in case environment variable does not exist, getenv returns nullptr... X-Git-Tag: V9_11_0a2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=95ee2faf147d515ae8bbecaa4ec357704fec56df;p=modules%2Fkernel.git spns #33658: in case environment variable does not exist, getenv returns nullptr, which triggers an exception Test rewrite parameter first, then check if environment variable is nullptr, and finally check if environment variable exists but is empty Useful for setting MeshGems license --- diff --git a/src/Basics/Basics_Utils.cxx b/src/Basics/Basics_Utils.cxx index 1725a319c..63fe64c69 100644 --- a/src/Basics/Basics_Utils.cxx +++ b/src/Basics/Basics_Utils.cxx @@ -175,7 +175,7 @@ namespace Kernel_Utils { std::stringstream sstr; sstr<