commit dbca66f21fa2dd694b9b138d4385437e61d7d034
parent d2d0b1fe8f315352d53ce88e61103488b6430d56
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Tue, 5 Jan 2021 17:34:31 -0800
Fix wstrtonum()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util.c b/util.c
@@ -134,7 +134,7 @@ wstrtonum(const char *ns, long long min, long long max, const char **err)
long long n;
n = strtonum(ns, min, max, err);
- if (err != NULL)
+ if (*err != NULL)
warn(0, "number '%s': %s", ns, *err);
return n;
}