Skip to content

Commit

Permalink
inspector: make Coverity happy
Browse files Browse the repository at this point in the history
PR-URL: #17656
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
eugeneo authored and MylesBorins committed Jan 9, 2018
1 parent 8b666d6 commit 8d4fca3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/inspector_socket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class WriteRequest {
WriteRequest(ProtocolHandler* handler, const std::vector<char>& buffer)
: handler(handler)
, storage(buffer)
, req(uv_write_t())
, buf(uv_buf_init(storage.data(), storage.size())) {}

static WriteRequest* from_write_req(uv_write_t* req) {
Expand Down

0 comments on commit 8d4fca3

Please sign in to comment.