aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/std.zc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/std.zc b/src/lib/std.zc
index 5c86aa6..76c89f7 100644
--- a/src/lib/std.zc
+++ b/src/lib/std.zc
@@ -116,7 +116,7 @@ struct Text {
// dst: where the text goes; 21 words is always enough (20 characters and the 0)
// returns: how many characters were written, not counting the 0
static int itoa(int n, char* dst) {
- int b[24], i = 0, j = 0, neg = 0;
+ int b[24] = {}, i = 0, j = 0, neg = 0;
if (!n) { dst[0] = '0'; dst[1] = 0; return 1; }
if (n < 0) { neg = 1; n = 0 - n; }
if (n < 0) { rt.copy_w(dst, "-9223372036854775808", 21); return 20; }