From 21e7da86b41372f007b6551156b82ee10dcb99f3 Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Mon, 9 Oct 2023 08:28:03 -0400 Subject: [PATCH] cleanup: strtonum: error check --- src/xmppipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmppipe.c b/src/xmppipe.c index 2b9de53..86ae263 100644 --- a/src/xmppipe.c +++ b/src/xmppipe.c @@ -575,7 +575,7 @@ static long long xmppipe_strtonum(xmppipe_state_t *state, const char *nptr, const char *errstr = NULL; n = strtonum(nptr, minval, maxval, &errstr); - if (errstr) + if (errstr != NULL) errx(EXIT_FAILURE, "%s: %s", errstr, nptr); return n;