From 90a01425f9b57ddcb6964b9f4d36d531a30a9c6d Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Mon, 29 Nov 2021 15:42:59 -0500 Subject: [PATCH] inspector: add missing initialization Add missing initialization flagged by Coverity Signed-off-by: Michael Dawson --- test/cctest/test_inspector_socket_server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cctest/test_inspector_socket_server.cc b/test/cctest/test_inspector_socket_server.cc index 4e4ebbc32854ac..7d5d0929def26b 100644 --- a/test/cctest/test_inspector_socket_server.cc +++ b/test/cctest/test_inspector_socket_server.cc @@ -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 targets; if (has_targets) targets = { MAIN_TARGET_ID };