Commit 9c684b5b authored by Alexander Lapshin's avatar Alexander Lapshin

.

parent e1ac98db
......@@ -43,7 +43,7 @@ static void InitDataA(BNOAstroBase& ab, std::string configFile, bool noAtm = fal
{
if (configFile == "%ASTROBASE%") {
const char* env_astro = std::getenv("ASTROBASE");
if (!strlen(env_astro)) {
if (!env_astro) {
throw (Exp() << "no env variable ASTROBASE found");
}
configFile = std::string(env_astro);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment