summaryrefslogtreecommitdiff
path: root/src/od.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-10-19 02:45:36 +0000
committerJim Meyering <jim@meyering.net>1994-10-19 02:45:36 +0000
commit6a76abbf9c911e179a4d6fbd38940077ad1a0f3a (patch)
tree5d1312076efd5cb5ffb2d512e341d8026b78bc7a /src/od.c
parent131aa77dd9cf1ecc0fb10afead3facf8bdbc0a45 (diff)
downloadcoreutils-6a76abbf9c911e179a4d6fbd38940077ad1a0f3a.tar.xz
.
Diffstat (limited to 'src/od.c')
-rw-r--r--src/od.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/od.c b/src/od.c
index 9f3c02871..287bbf718 100644
--- a/src/od.c
+++ b/src/od.c
@@ -421,6 +421,7 @@ my_strtoul (s, base, val, allow_bkm_suffix)
assert (0 <= base && base <= 36);
+ errno = 0;
tmp = strtoul (s, &p, base);
if (errno != 0)
return UINT_OVERFLOW;