diff options
Diffstat (limited to 'polyp/util.c')
-rw-r--r-- | polyp/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/util.c b/polyp/util.c index ff1aebf3..ee3fa87d 100644 --- a/polyp/util.c +++ b/polyp/util.c @@ -880,7 +880,7 @@ int pa_atoi(const char *s, int32_t *ret_i) { l = strtol(s, &x, 0); - if (x || *x) + if (!x || *x) return -1; *ret_i = (int32_t) l; |