Skip to content

Commit

Permalink
quic: address coverity warning
Browse files Browse the repository at this point in the history
- initiaze variable in similar way down in other
  constructors

Signed-off-by: Michael Dawson <midawson@redhat.com>
PR-URL: #52824
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
mhdawson authored and targos committed May 11, 2024
1 parent 2dd8f09 commit 619ac79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/quic/data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ QuicError::QuicError(const std::string& reason)

QuicError::QuicError(const ngtcp2_ccerr* ptr)
: reason_(reinterpret_cast<const char*>(ptr->reason), ptr->reasonlen),
error_(),
ptr_(ptr) {}

QuicError::QuicError(const ngtcp2_ccerr& error)
Expand Down

0 comments on commit 619ac79

Please sign in to comment.