From ba54c370c4c1fee3d59a90cd4986bb7859a62c52 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 7 Apr 2010 02:43:55 +0300 Subject: [PATCH] str_to_*(): Fixed them to actually work. --HG-- branch : HEAD --- src/lib/strnum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/strnum.c b/src/lib/strnum.c index e50316deb6..b9d32d24ad 100644 --- a/src/lib/strnum.c +++ b/src/lib/strnum.c @@ -97,7 +97,7 @@ int str_to_uintmax(const char *str, uintmax_t *num_r) } n = next + (*str - '0'); } - if (str != '\0') + if (*str != '\0') return -1; *num_r = n; return 0; -- 2.47.3