summaryrefslogtreecommitdiff
path: root/include/async_resolve.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-01-07 00:12:53 +0300
committerEd Tanous <ed@tanous.net>2022-01-12 22:00:37 +0300
commit543f44000a992870ff76e76888dd589a3a31ed4e (patch)
tree9e4363d871da1643f25856665585bb8c6e251aa3 /include/async_resolve.hpp
parentd63c72ea488b808f5574e61585334a3ffb90c258 (diff)
downloadbmcweb-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 'include/async_resolve.hpp')
-rw-r--r--include/async_resolve.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/async_resolve.hpp b/include/async_resolve.hpp
index 105616daa6..563d816ce3 100644
--- a/include/async_resolve.hpp
+++ b/include/async_resolve.hpp
@@ -73,7 +73,7 @@ class Resolver
handler(ec, endpointList);
return;
}
- uint16_t portNum;
+ uint16_t portNum = 0;
auto it = std::from_chars(
port.data(), port.data() + port.size(), portNum);
if (it.ec != std::errc())