diff --git a/src/add-ons/kernel/file_systems/ramfs/Query.cpp b/src/add-ons/kernel/file_systems/ramfs/Query.cpp index b742893c36..e4db0eced8 100644 --- a/src/add-ons/kernel/file_systems/ramfs/Query.cpp +++ b/src/add-ons/kernel/file_systems/ramfs/Query.cpp @@ -1335,7 +1335,7 @@ Operator::Score() const status_t Operator::InitCheck() { - if (fOp != OP_AND && fOp != OP_OR + if ((fOp != OP_AND && fOp != OP_OR) || fLeft == NULL || fLeft->InitCheck() < B_OK || fRight == NULL || fRight->InitCheck() < B_OK) return B_ERROR;