diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-03-01 23:17:59 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:35:06 -0700 |
commit | aebef544cb4417bcf1dbc6d9d0ad795e5525e41c (patch) | |
tree | 92033d61204629017098c1d3f25be5b256182a6e /namedev.c | |
parent | a6f01502bd2a76d1f9d90abb7bbeebd8f6893ed9 (diff) |
[PATCH] fix stroul endptr use
The endptr is never NULL, so here we hopefully do the right thing.
Diffstat (limited to 'namedev.c')
-rw-r--r-- | namedev.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |