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 <mdawson@devrus.com>

PR-URL: #41022
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
mhdawson authored and danielleadams committed Dec 13, 2021
1 parent 4369c6d commit 8d87303
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/cctest/test_inspector_socket_server.cc
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 8d87303

Please sign in to comment.