From 1c5243721cfc4031a9da4976c56d2d69dca8e711 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Thu, 4 May 2023 16:45:45 +0200 Subject: [PATCH] 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 --- src/Basics/Basics_Utils.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<