Skip to content

Commit

Permalink
inspector: add missing initialization
Browse files Browse the repository at this point in the history
Add missing initialization flagged by Coverity

Signed-off-by: Michael Dawson <[email protected]>

PR-URL: nodejs#41022
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
mhdawson authored and Linkgoron committed Jan 31, 2022
1 parent 4b30147 commit bcd3319
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/cctest/test_inspector_socket_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ class TestSocketServerDelegate : public SocketServerDelegate {

ServerHolder::ServerHolder(bool has_targets, uv_loop_t* loop,
const std::string& host, int port, FILE* out) {
session_id_ = 0;
std::vector<std::string> targets;
if (has_targets)
targets = { MAIN_TARGET_ID };
Expand Down

0 comments on commit bcd3319

Please sign in to comment.