aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/vsprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index cba2385a6f0b..4819c3d6cca4 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -797,8 +797,9 @@ static char *ip6_compressed_string(char *p, const char *addr)
797 p = pack_hex_byte(p, hi); 797 p = pack_hex_byte(p, hi);
798 else 798 else
799 *p++ = hex_asc_lo(hi); 799 *p++ = hex_asc_lo(hi);
800 p = pack_hex_byte(p, lo);
800 } 801 }
801 if (hi || lo > 0x0f) 802 else if (lo > 0x0f)
802 p = pack_hex_byte(p, lo); 803 p = pack_hex_byte(p, lo);
803 else 804 else
804 *p++ = hex_asc_lo(lo); 805 *p++ = hex_asc_lo(lo);