@@ -155,7 +155,7 @@ class DispatchOnInspectorBackendTask : public v8::Task {
155
155
156
156
InspectorIo::InspectorIo (Environment* env, v8::Platform* platform,
157
157
const std::string& path, const DebugOptions& options)
158
- : options_(options), delegate_(nullptr ),
158
+ : options_(options), thread_(), delegate_(nullptr ),
159
159
shutting_down_ (false ), state_(State::kNew ),
160
160
parent_env_(env), io_thread_req_(),
161
161
platform_(platform), dispatching_messages_(false ),
@@ -236,6 +236,7 @@ void InspectorIo::WriteCbIO(uv_async_t* async) {
236
236
template <typename Transport>
237
237
void InspectorIo::WorkerRunIO () {
238
238
uv_loop_t loop;
239
+ loop.data = nullptr ;
239
240
int err = uv_loop_init (&loop);
240
241
CHECK_EQ (err, 0 );
241
242
io_thread_req_.data = nullptr ;
@@ -244,8 +245,11 @@ void InspectorIo::WorkerRunIO() {
244
245
std::string script_path;
245
246
if (!script_name_.empty ()) {
246
247
uv_fs_t req;
247
- if (0 == uv_fs_realpath (&loop, &req, script_name_.c_str (), nullptr ))
248
+ req.ptr = nullptr ;
249
+ if (0 == uv_fs_realpath (&loop, &req, script_name_.c_str (), nullptr )) {
250
+ CHECK_NE (req.ptr , nullptr );
248
251
script_path = std::string (static_cast <char *>(req.ptr ));
252
+ }
249
253
uv_fs_req_cleanup (&req);
250
254
}
251
255
InspectorIoDelegate delegate (this , script_path, script_name_,
0 commit comments