From: Ricardo Mones Date: Thu, 4 Oct 2018 13:49:07 +0000 (+0200) Subject: Simplify comparison X-Git-Tag: 3.17.2~124 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=f7dd46558a296973d765f3ba25dfb46e02b501a1;ds=sidebyside Simplify comparison and keep Coverity happy. --- diff --git a/src/entity.c b/src/entity.c index fcf4c2801..058c3aa3d 100644 --- 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");