Commit 4d99f6df2234e148a863e3f357a249376fd4776f
1 parent
9250191e
Correct precedence of GAMMALIB_CALDB over CALDB (Bug #1094)
GAMMALIB_CALDB should take precedence over CALDB, yet so far the opposite was true. This has now been corrected for.
Showing
1 changed file
with
1 additions
and
1 deletions
src/obs/GCaldb.cpp
| ... | ... | @@ -464,7 +464,7 @@ std::string GCaldb::rootdir(void) const |
| 464 | 464 | |
| 465 | 465 | // ... otherwise, if CALDB was set then check whether the directory |
| 466 | 466 | // exists |
| 467 | - if (ptr2 != NULL) { | |
| 467 | + else if (ptr2 != NULL) { | |
| 468 | 468 | if (access(ptr2, F_OK) == 0) { |
| 469 | 469 | rootdir = std::string(ptr2); |
| 470 | 470 | } | ... | ... |