mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
libc/stdlib: If there were no digits at all, strtoul() stores the original value of nptr in *endptr (and returns 0).
Reference: STRTOUL(3) Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
@@ -80,7 +80,7 @@ bool lib_isbasedigit(int ch, int base, int *value)
|
||||
}
|
||||
}
|
||||
|
||||
if (value)
|
||||
if (ret && value)
|
||||
{
|
||||
*value = tmp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user