diff options
author | Ed Tanous <edtanous@google.com> | 2022-01-07 00:12:53 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-01-12 22:00:37 +0300 |
commit | 543f44000a992870ff76e76888dd589a3a31ed4e (patch) | |
tree | 9e4363d871da1643f25856665585bb8c6e251aa3 /redfish-core/lib/message_registries.hpp | |
parent | d63c72ea488b808f5574e61585334a3ffb90c258 (diff) | |
download | bmcweb-543f44000a992870ff76e76888dd589a3a31ed4e.tar.xz |
Enable init checker
clang-tidy added cppcoreguidelines-init-variables as a check, which is
something we already enforce to some extent, but getting CI to enforce
it will help reviews move faster.
Tested: Code compiles. Noop changes.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I7e10950de617b1d3262265572b1703f2e60b69d0
Diffstat (limited to 'redfish-core/lib/message_registries.hpp')
-rw-r--r-- | redfish-core/lib/message_registries.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/lib/message_registries.hpp b/redfish-core/lib/message_registries.hpp index ae02189f64..cfa2bf574f 100644 --- a/redfish-core/lib/message_registries.hpp +++ b/redfish-core/lib/message_registries.hpp @@ -62,7 +62,7 @@ inline void handleMessageRoutesMessageRegistryFileGet( const crow::Request&, const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, const std::string& registry) { - const message_registries::Header* header; + const message_registries::Header* header = nullptr; std::string dmtf = "DMTF "; const char* url = nullptr; @@ -127,7 +127,7 @@ inline void handleMessageRegistryGet( const std::string& registry, const std::string& registryMatch) { - const message_registries::Header* header; + const message_registries::Header* header = nullptr; std::vector<const message_registries::MessageEntry*> registryEntries; if (registry == "Base") { |