summaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-13 17:15:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-13 17:16:18 +0000
commit845926b715857267b3ccbaeccb2f4cd0d53f5a95 (patch)
treee40036ebedf6edb85412541f4f605e050f80a1bf /src/libutil/str_util.c
parentfbddd1b83f1e21068e1b287af1861fb40649eab8 (diff)
downloadrspamd-845926b715857267b3ccbaeccb2f4cd0d53f5a95.tar.gz
rspamd-845926b715857267b3ccbaeccb2f4cd0d53f5a95.zip
[Minor] Fix initialization
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r--src/libutil/str_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index cbad775cb..63e22e641 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -1767,6 +1767,7 @@ decode:
/* Decode character after '=' */
c = *p++;
remain --;
+ ret = 0;
if (c >= '0' && c <= '9') { ret = c - '0'; }
else if (c >= 'A' && c <= 'F') { ret = c - 'A' + 10; }
@@ -1870,6 +1871,7 @@ decode:
/* Decode character after '=' */
c = *p++;
remain --;
+ ret = 0;
if (c >= '0' && c <= '9') { ret = c - '0'; }
else if (c >= 'A' && c <= 'F') { ret = c - 'A' + 10; }