summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;