summaryrefslogtreecommitdiff
path: root/deps/uv/test/test-ping-pong.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/test/test-ping-pong.c')
-rw-r--r--deps/uv/test/test-ping-pong.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/uv/test/test-ping-pong.c b/deps/uv/test/test-ping-pong.c
index c579fdd668..81941ab83d 100644
--- a/deps/uv/test/test-ping-pong.c
+++ b/deps/uv/test/test-ping-pong.c
@@ -155,8 +155,10 @@ static void tcp_pinger_v6_new(void) {
struct sockaddr_in6 server_addr;
pinger_t *pinger;
+
ASSERT(0 ==uv_ip6_addr("::1", TEST_PORT, &server_addr));
pinger = malloc(sizeof(*pinger));
+ ASSERT(pinger != NULL);
pinger->state = 0;
pinger->pongs = 0;
@@ -185,6 +187,7 @@ static void tcp_pinger_new(void) {
ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &server_addr));
pinger = malloc(sizeof(*pinger));
+ ASSERT(pinger != NULL);
pinger->state = 0;
pinger->pongs = 0;
@@ -211,6 +214,7 @@ static void pipe_pinger_new(void) {
pinger_t *pinger;
pinger = (pinger_t*)malloc(sizeof(*pinger));
+ ASSERT(pinger != NULL);
pinger->state = 0;
pinger->pongs = 0;