diff --git a/src/obs/GCaldb.cpp b/src/obs/GCaldb.cpp index bcbdc33..8a4e4c7 100644 --- a/src/obs/GCaldb.cpp +++ b/src/obs/GCaldb.cpp @@ -464,7 +464,7 @@ std::string GCaldb::rootdir(void) const // ... otherwise, if CALDB was set then check whether the directory // exists - if (ptr2 != NULL) { + else if (ptr2 != NULL) { if (access(ptr2, F_OK) == 0) { rootdir = std::string(ptr2); }