diff --git a/libretroshare/src/util/rsdiscspace.cc b/libretroshare/src/util/rsdiscspace.cc index 232beba56..294914079 100644 --- a/libretroshare/src/util/rsdiscspace.cc +++ b/libretroshare/src/util/rsdiscspace.cc @@ -115,6 +115,12 @@ bool RsDiscSpace::checkForDiscSpace(RsDiscSpace::DiscLocation loc) { RsStackMutex m(_mtx) ; // Locked + if(!rsFiles) // + { + std::cerr << "checkForDiscSpace(): ERROR: rsFiles is 0x0" << std::endl ; + return true ; + } + time_t now = time(NULL) ; if(_last_check[loc]+DELAY_BETWEEN_CHECKS < now)