git: sbin/hammer2/cmd_debug.c: Clear errno
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Oct 5 03:21:00 PDT 2024
commit b87d88f03710687a35d7326c1de7fb8f20843566
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date: Sat Oct 5 02:12:05 2024 -0700
sbin/hammer2/cmd_debug.c: Clear errno
otherwise affects next strtol(3) variant when no error.
strtol(3) says "If no conversion could be performed,
0 is returned and the global variable errno is set to EINVAL".
Summary of changes:
sbin/hammer2/cmd_debug.c | 5 +++++
1 file changed, 5 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b87d88f03710687a35d7326c1de7fb8f20843566
--
DragonFly BSD source repository
More information about the Commits
mailing list