diff options
author | Ed Tanous <edtanous@google.com> | 2022-01-07 20:30:41 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-01-12 22:00:37 +0300 |
commit | d3a9e08452986b28c8024de2b0fdb3cadbf4411b (patch) | |
tree | f9dfbc45cfdf3c58a9e03e5c8d98cc199c417243 /include/multipart_parser.hpp | |
parent | ca45aa3c416e55027b8d17078bac6493e81d564f (diff) | |
download | bmcweb-d3a9e08452986b28c8024de2b0fdb3cadbf4411b.tar.xz |
Enforce variable init
There were a few places we weren't initting our variables per cpp core
guidelines. Fix all of them, and enable checks for this.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Iba09924beb9fb26f597ff94d1cecbd6d6b1af912
Diffstat (limited to 'include/multipart_parser.hpp')
-rw-r--r-- | include/multipart_parser.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/multipart_parser.hpp b/include/multipart_parser.hpp index e385558037..ee028f1d3e 100644 --- a/include/multipart_parser.hpp +++ b/include/multipart_parser.hpp @@ -337,10 +337,10 @@ class MultipartParser static constexpr char hyphen = '-'; static constexpr char colon = ':'; - std::array<bool, 256> boundaryIndex; + std::array<bool, 256> boundaryIndex{}; std::string lookbehind; - State state; - Boundary flags; + State state{State::START}; + Boundary flags{Boundary::NON_BOUNDARY}; size_t index = 0; size_t partDataMark = 0; size_t headerFieldMark = 0; |