aboutsummaryrefslogtreecommitdiffstats
path: root/src/zsets.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-04-27 17:19:53 +0200
committerMattias Andrée <maandree@kth.se>2016-04-27 17:19:53 +0200
commite746f06265981fd17bc656ca59e0ed82f6cea84d (patch)
tree9161d4428b889f7aa4375988c4fdc29e1ab02ee2 /src/zsets.c
parentMinor word fix in STATUS (diff)
downloadlibzahl-e746f06265981fd17bc656ca59e0ed82f6cea84d.tar.gz
libzahl-e746f06265981fd17bc656ca59e0ed82f6cea84d.tar.bz2
libzahl-e746f06265981fd17bc656ca59e0ed82f6cea84d.tar.xz
Add option UNSAFE which disables all internal error checks
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zsets.c')
-rw-r--r--src/zsets.c4
1 files changed, 2 insertions, 2 deletions
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;
}