From 4d18b5a11c228fe178e43b00b51e8b03f6072d12 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 4 Apr 2019 22:36:45 +0200 Subject: [PATCH] fix: compare unsigned --- client/jansson/utf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/jansson/utf.c b/client/jansson/utf.c index 003c422bd..61f0a381b 100644 --- a/client/jansson/utf.c +++ b/client/jansson/utf.c @@ -122,7 +122,7 @@ const char *utf8_iterate(const char *buffer, size_t bufsize, int32_t *codepoint) return buffer; count = utf8_check_first(buffer[0]); - if (count <= 0) + if (count == 0) return NULL; if (count == 1)