From c6481df15b97a643b4e78a79319a8cd3e26dad3b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 5 Mar 2017 03:04:41 +0000 Subject: shorten and improve readability of assertion --- ext/kcar/kcar.rl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/kcar/kcar.rl b/ext/kcar/kcar.rl index d21b243..cbcfa97 100644 --- a/ext/kcar/kcar.rl +++ b/ext/kcar/kcar.rl @@ -209,7 +209,7 @@ static void write_cont_value(struct http_parser *hp, /* normalize tab to space */ if (cont_len > 0) { - assert((' ' == *vptr || '\t' == *vptr) && "invalid leading white space"); + assert(is_lws(*vptr) && "invalid leading white space"); *vptr = ' '; } for (end = len - 1; end >= 0 && is_lws(vptr[end]); end--); -- cgit v1.2.3-24-ge0c7