mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
test: fix coverity warning in test
Fix uninitialized pointer field warning in test Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
a6e3d3b52b
commit
98ade2d1bb
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user