Skip to content
Permalink
Browse files
test: fix coverity warning in test
Fix uninitialized pointer field warning in test

Signed-off-by: Michael Dawson <mdawson@devrus.com>

PR-URL: #43631
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
mhdawson authored and danielleadams committed Jul 26, 2022
1 parent a9ecba2 commit f3fc51c508ca6cd0669fce52a227de650b4d907d
Showing 1 changed file with 3 additions and 3 deletions.
@@ -301,11 +301,11 @@ class ServerHolder {

class TestSocketServerDelegate : public SocketServerDelegate {
public:
explicit TestSocketServerDelegate(
ServerHolder* server,
const std::vector<std::string>& target_ids)
explicit TestSocketServerDelegate(ServerHolder* server,
const std::vector<std::string>& target_ids)
: harness_(server),
targets_(target_ids),
server_(nullptr),
session_id_(0) {}

~TestSocketServerDelegate() override {

0 comments on commit f3fc51c

Please sign in to comment.