b64_encode(): fixed input[] not initialized warn under gcc 4.4.5
authorBachtin, Dmitri <dbachtin@init-ka.de>
Wed, 9 Sep 2015 07:23:58 +0000 (09:23 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 9 Sep 2015 09:03:07 +0000 (11:03 +0200)
Signed-off-by: Dmitri Bachtin <dbachtin@init-ka.de>
base64.c

index b6f8bf37095a5b51e25a73f69101ddca73a4c612..4186ce848c7125190f90da583bf6aa4f735cf0bc 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;