aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 13:44:35 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 13:44:35 +0000
commit3256178a2433f242f69c55f6eaee36ea314b2f1a (patch)
tree69323a953a69d4d62c9c57e695c6f84ac9527bb8 /src/libutil/str_util.c
parent5c25ee027e883ea5251958ecee14ea5fc3e68946 (diff)
downloadrspamd-3256178a2433f242f69c55f6eaee36ea314b2f1a.tar.gz
rspamd-3256178a2433f242f69c55f6eaee36ea314b2f1a.zip
Fix couple of issues found by gcc-6
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r--src/libutil/str_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index 89a6537de..5f4cd1c1e 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -469,13 +469,13 @@ rspamd_encode_base32_buf (const guchar *in, gsize inlen, gchar *out,
{
static const char b32[]="ybndrfg8ejkmcpqxot1uwisza345h769";
gchar *o, *end;
- gsize i, r;
+ gsize i;
gint remain = -1, x;
end = out + outlen;
o = out;
- for (i = 0, r = 0; i < inlen && o < end - 1; i++) {
+ for (i = 0; i < inlen && o < end - 1; i++) {
switch (i % 5) {
case 0:
/* 8 bits of input and 3 to remain */