commit f7dd46558a296973d765f3ba25dfb46e02b501a1
parent 5c750e4f256b2d0f45cabb9176c91235ad7e0fa4
Author: Ricardo Mones <ricardo@mones.org>
Date: Thu, 4 Oct 2018 15:49:07 +0200
Simplify comparison
and keep Coverity happy.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/entity.c b/src/entity.c
@@ -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");