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 Feb 1, 2022
1 parent 35d0a4e commit 5356dfd
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 5356dfd

Please sign in to comment.