Browse Source

[Minor] Fix initialization

tags/1.5.0
Vsevolod Stakhov 7 years ago
parent
commit
845926b715
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/libutil/str_util.c

+ 2
- 0
src/libutil/str_util.c View File

@@ -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; }

Loading…
Cancel
Save