Skip to content

Commit

Permalink
break up ASSERT in buf_sock_read (twitter#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkingfish authored Jul 2, 2018
1 parent 727905b commit dd56abd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/stream/cc_sockio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dd56abd

Please sign in to comment.