Simplify comparison
authorRicardo Mones <ricardo@mones.org>
Thu, 4 Oct 2018 13:49:07 +0000 (15:49 +0200)
committerRicardo Mones <ricardo@mones.org>
Thu, 4 Oct 2018 13:49:07 +0000 (15:49 +0200)
and keep Coverity happy.

src/entity.c

index fcf4c2801350845a08625a3193beab95601cd9d0..058c3aa3d5aa588281aeb72dc261c51f1b8bf698 100644 (file)
@@ -357,7 +357,7 @@ static gchar *entity_decode_numeric(gchar *str)
        if (strlen(b) > 0)
                c = g_ascii_strtoll (b, NULL, (hex ? 16 : 10));
 
-       if (c >= 0 && c <= 31)
+       if (c < 32)
                /* An unprintable character; return the Unicode replacement symbol */
                return g_strdup("\xef\xbf\xbd");