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. --- klibc_fixups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klibc_fixups.c') diff --git a/klibc_fixups.c b/klibc_fixups.c index 1241eb7d10..99460c32f7 100644 --- a/klibc_fixups.c +++ b/klibc_fixups.c @@ -74,7 +74,7 @@ static unsigned long get_id_by_name(const char *uname, const char *dbfile) if (strcmp(uname, name) == 0) { id = strtoul(idstr, &tail, 10); - if (tail == NULL) + if (tail[0] != '\0') id = -1; else dbg("id for '%s' is '%li'", name, id); -- cgit v1.2.3-54-g00ecf