aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-02-14 10:55:06 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-02-14 10:55:22 +0100
commitfd0258a39fc9f798ce9cc23b2872f9902c401627 (patch)
treeb54f0052bf6cf88f15f47d86d92379cd00044f88
parentimprove machinemode (diff)
downloadslibc-fd0258a39fc9f798ce9cc23b2872f9902c401627.tar.gz
slibc-fd0258a39fc9f798ce9cc23b2872f9902c401627.tar.bz2
slibc-fd0258a39fc9f798ce9cc23b2872f9902c401627.tar.xz
Fix issue #10 on github
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-rw-r--r--src/slibc-human/humansize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slibc-human/humansize.c b/src/slibc-human/humansize.c
index d834849..28c8685 100644
--- a/src/slibc-human/humansize.c
+++ b/src/slibc-human/humansize.c
@@ -71,7 +71,7 @@ static char* humansize_exact(char* buffer, size_t bufsize, enum humansize_mode m
{
size_t i, n = 0;
void* new = NULL;
- int m, saved_errno;
+ int m = 0, saved_errno;
if (detail == 0)
detail = 999;