diff options
Diffstat (limited to 'redfish-core/lib/virtual_media.hpp')
-rw-r--r-- | redfish-core/lib/virtual_media.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/lib/virtual_media.hpp b/redfish-core/lib/virtual_media.hpp index ab27fc7b8a..9e44e80a7a 100644 --- a/redfish-core/lib/virtual_media.hpp +++ b/redfish-core/lib/virtual_media.hpp @@ -111,7 +111,7 @@ inline void if (property == "WriteProtected") { const bool* writeProtectedValue = std::get_if<bool>(&value); - if (writeProtectedValue) + if (writeProtectedValue != nullptr) { aResp->res.jsonValue["WriteProtected"] = *writeProtectedValue; @@ -126,7 +126,7 @@ inline void if (property == "Active") { const bool* activeValue = std::get_if<bool>(&value); - if (!activeValue) + if (activeValue == nullptr) { BMCWEB_LOG_DEBUG << "Value Active not found"; return; @@ -578,7 +578,7 @@ class CredentialsProvider SecureBuffer pack(FormatterFunc formatter) { SecureBuffer packed{new Buffer{}}; - if (formatter) + if (formatter != nullptr) { formatter(credentials.user(), credentials.password(), *packed); } |