diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2026-08-29 20:22:15 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2026-09-07 19:11:38 +0000 |
| commit | 9872af2e9644dc4aa1ce5632bb4e60fc52c690b6 (patch) | |
| tree | e1ecfdf73ce8f332508cedccaa98a7fef3e10593 /tools/debugscripts/README | |
| parent | 6624f3cf2bd4f08adb295f22aa6733f314043247 (diff) | |
gstat: Set errno = 0 before strtoulstable/14
The strtoul function sets errno on error, but does not clear it on
success; when using strtoul and checking errno (as one should) for
ERANGE / EINVAL afterwards, it's important to zero errno first.
While here, remove a dead store.
Reviewed by: phk
Fixes: 4fe8c1b67be0 ("Add error and range checking ... ")
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D59270
(cherry picked from commit 6ddb10cf6b7f870d749e96d2ae55976b18896f54)
Diffstat (limited to 'tools/debugscripts/README')
0 files changed, 0 insertions, 0 deletions
