]> SALOME platform Git repositories - modules/kernel.git/commit
Salome HOME
spns #33658: in case environment variable does not exist, getenv returns nullptr... spns/33658 V9_11_0a1 V9_11_0a2 3/head
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 4 May 2023 14:45:45 +0000 (16:45 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 9 May 2023 12:03:24 +0000 (14:03 +0200)
commit1c5243721cfc4031a9da4976c56d2d69dca8e711
tree3f1370f34b420c23e174215390d68ac4e3e5360f
parent0a6bd3b78c18ead877bbaa5ef903014eaa8bee5f
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