diff --git a/indra/llcommon/llapr.cpp b/indra/llcommon/llapr.cpp index 497d6235f8..8907e5e048 100644 --- a/indra/llcommon/llapr.cpp +++ b/indra/llcommon/llapr.cpp @@ -639,7 +639,7 @@ bool LLAPRFile::remove(const std::string& filename, LLVolatileAPRPool* pool) if (s != APR_SUCCESS) { - if (!APR_STATUS_IS_ENOENT) + if (!APR_STATUS_IS_ENOENT(s)) { // We only care about the error if it's not because // the file doesn't exist.