summaryrefslogtreecommitdiff
path: root/klibc_fixups.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-03-01 23:17:59 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:06 -0700
commitaebef544cb4417bcf1dbc6d9d0ad795e5525e41c (patch)
tree92033d61204629017098c1d3f25be5b256182a6e /klibc_fixups.c
parenta6f01502bd2a76d1f9d90abb7bbeebd8f6893ed9 (diff)
[PATCH] fix stroul endptr use
The endptr is never NULL, so here we hopefully do the right thing.
Diffstat (limited to 'klibc_fixups.c')
-rw-r--r--klibc_fixups.c2
1 files changed, 1 insertions, 1 deletions
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);