jshn: add functionality to read big JSON
[project/libubox.git] / base64.c
index b6f8bf3..4186ce8 100644 (file)
--- a/base64.c
+++ b/base64.c
@@ -140,7 +140,7 @@ int b64_encode(const void *_src, size_t srclength,
        const unsigned char *src = _src;
        char *target = dest;
        size_t datalength = 0;
-       u_char input[3];
+       u_char input[3] = {0};
        u_char output[4];
        int i;