| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cbe5747 commit 09ecd1f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -110,9 +110,11 @@ void SendTargentsListResponse(inspector_socket_t* socket, int port) { | |||
| 110 | 110 | char buffer[sizeof(LIST_RESPONSE_TEMPLATE) + 4096]; | |
| 111 | 111 | char title[2048]; // uv_get_process_title trims the title if too long | |
| 112 | 112 | int err = uv_get_process_title(title, sizeof(title)); | |
| 113 | - ASSERT_EQ(0, err); | ||
| 113 | + if (err != 0) { | ||
| 114 | + snprintf(title, sizeof(title), "Node.js"); | ||
| 115 | + } | ||
| 114 | 116 | char* c = title; | |
| 115 | - while (!c) { | ||
| 117 | + while (*c != '\0') { | ||
| 116 | 118 | if (*c < ' ' || *c == '\"') { | |
| 117 | 119 | *c = '_'; | |
| 118 | 120 | } | |
@@ -322,6 +324,8 @@ AgentImpl::AgentImpl(Environment* env) : port_(0), | |||
| 322 | 324 | int err; | |
| 323 | 325 | err = uv_sem_init(&start_sem_, 0); | |
| 324 | 326 | CHECK_EQ(err, 0); | |
| 327 | + memset(&data_written_, 0, sizeof(data_written_)); | ||
| 328 | + memset(&io_thread_req_, 0, sizeof(io_thread_req_)); | ||
| 325 | 329 | } | |
| 326 | 330 | ||
| 327 | 331 | AgentImpl::~AgentImpl() { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments