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;