summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/util.c b/util.c
index 39ec3e9..fca9e67 100644
--- a/util.c
+++ b/util.c
@@ -1977,8 +1977,11 @@ break2:
nd0 = -4;
if (!*++s || !(s1 = strchr(hexdigit, *s))) goto ret0;
- while (*s == '0') s++;
- if ((s1 = strchr(hexdigit, *s)) != NULL) {
+ if (*s == '0') {
+ while (*++s == '0');
+ s1 = strchr(hexdigit, *s);
+ }
+ if (s1 != NULL) {
do {
adj += aadj * ((s1 - hexdigit) & 15);
nd0 += 4;