From aebef544cb4417bcf1dbc6d9d0ad795e5525e41c Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Mon, 1 Mar 2004 23:17:59 -0800 Subject: [PATCH] fix stroul endptr use The endptr is never NULL, so here we hopefully do the right thing. --- namedev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'namedev.c') diff --git a/namedev.c b/namedev.c index 2ebf276f6b..ed8d6c1808 100644 --- a/namedev.c +++ b/namedev.c @@ -198,7 +198,7 @@ static int get_format_len(char **str) if (isdigit(*str[0])) { num = (int) strtoul(*str, &tail, 10); - if (tail != NULL) { + if (num > 0) { *str = tail; dbg("format length=%i", num); return num; -- cgit v1.2.3-54-g00ecf