ext/libuv/test/echo-server.c in libuv-0.12.2 vs ext/libuv/test/echo-server.c in libuv-0.12.3
- old
+ new
@@ -117,11 +117,12 @@
}
}
}
wr = (write_req_t*) malloc(sizeof *wr);
-
+ ASSERT(wr != NULL);
wr->buf = uv_buf_init(buf->base, nread);
+
if (uv_write(&wr->req, handle, &wr->buf, 1, after_write)) {
FATAL("uv_write failed");
}
}