summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-02-22 12:46:57 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-02-22 12:46:57 +0100
commit913de0c29b0eb0e4285c85b50cc448bf25ff8cf6 (patch)
treee2bf81fc358ccf559fc933175b46dbf1ed3600e9 /src/core
parent9ce8fc70683d4d7632b7ff5868766e361ac3d8e8 (diff)
downloadweechat-913de0c29b0eb0e4285c85b50cc448bf25ff8cf6.zip
core: fix uninitialized value in function string_decode_base64
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-string.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c
index 04bd4cb1a..8aae79c6f 100644
--- a/src/core/wee-string.c
+++ b/src/core/wee-string.c
@@ -2426,6 +2426,10 @@ string_decode_base64 (const char *from, char *to)
length = 0;
for (i = 0; i < 4; i++)
{
+ in[i] = 0;
+ }
+ for (i = 0; i < 4; i++)
+ {
c = 0;
while (ptr_from[0] && (c == 0))
{