From e746f06265981fd17bc656ca59e0ed82f6cea84d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 27 Apr 2016 17:19:53 +0200 Subject: Add option UNSAFE which disables all internal error checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/zsets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zsets.c') diff --git a/src/zsets.c b/src/zsets.c index e1506f6..1701c6b 100644 --- a/src/zsets.c +++ b/src/zsets.c @@ -17,12 +17,12 @@ zsets(z_t a, const char *str) str += neg || (*str == '+'); - if (unlikely(!*str)) { + if (check(unlikely(!*str))) { errno = EINVAL; return -1; } for (str_end = str; *str_end; str_end++) { - if (unlikely(!isdigit(*str_end))) { + if (check(unlikely(!isdigit(*str_end)))) { errno = EINVAL; return -1; } -- cgit v1.2.3-70-g09d2