From 09cf1b463bcc96424eedb1e746bf1d8aff0644e3 Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Wed, 4 Jan 2023 15:27:30 +0100 Subject: [PATCH] RelAccX::isReload() no longer requires a valid pointer Change-Id: Iacd322873203df90bca16321718f0850157b62c8 --- lib/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.cpp b/lib/util.cpp index 9a8fa343..7150ea16 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -580,7 +580,7 @@ namespace Util{ bool RelAccX::isExit() const{return !p || (p[0] & 2);} /// Returns true if the structure should be reloaded through out of band means. - bool RelAccX::isReload() const{return p[0] & 4;} + bool RelAccX::isReload() const{return !p || (p[0] & 4);} /// Returns true if the given record number can be accessed. bool RelAccX::isRecordAvailable(uint64_t recordNo) const{