summaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.c
diff options
context:
space:
mode:
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; }