From dd56abdafc1a3d4a6940904d185122a6b99ff128 Mon Sep 17 00:00:00 2001 From: Yao Yue Date: Mon, 2 Jul 2018 13:08:33 -0700 Subject: [PATCH] break up ASSERT in buf_sock_read (#153) --- src/stream/cc_sockio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stream/cc_sockio.c b/src/stream/cc_sockio.c index 09c7af9a6..a44f61001 100644 --- a/src/stream/cc_sockio.c +++ b/src/stream/cc_sockio.c @@ -57,8 +57,9 @@ buf_tcp_read(struct buf_sock *s) rstatus_i status = CC_OK; ssize_t cap, n; - ASSERT(c != NULL && h != NULL && buf != NULL); - ASSERT(h->recv != NULL); + ASSERT(c != NULL); + ASSERT(buf != NULL); + ASSERT(h != NULL && h->recv != NULL); cap = buf_wsize(buf);