diff --git a/libntfs-3g/unistr.c b/libntfs-3g/unistr.c index c0ac3427..9a238014 100644 --- a/libntfs-3g/unistr.c +++ b/libntfs-3g/unistr.c @@ -710,9 +710,9 @@ static int utf8_to_unicode(u32 *wc, const char *s) | ((u32)(s[1] & 0x3F) << 12) | ((u32)(s[2] & 0x3F) << 6) | ((u32)(s[3] & 0x3F)); - /* Check valid ranges */ - if ((*wc <= 0x10ffff) && (*wc >= 0x10000)) - return 4; + /* Check valid ranges */ + if ((*wc <= 0x10ffff) && (*wc >= 0x10000)) + return 4; } goto fail; }