summaryrefslogtreecommitdiff
path: root/src/stdlib
diff options
context:
space:
mode:
authorOzkan Sezer <sezeroz@gmail.com>2019-07-31 00:07:15 +0300
committerOzkan Sezer <sezeroz@gmail.com>2019-07-31 00:07:15 +0300
commit1d7cb05657d29dbcf08f35bb657226e684cd18b8 (patch)
tree05f98aa7a48bdc3287c8cec2657b24eafe237f1d /src/stdlib
parent3d9295fa5f1be6c95329e0511541715bb4812a68 (diff)
downloadsdl-1d7cb05657d29dbcf08f35bb657226e684cd18b8.tar.gz
better readability..
Diffstat (limited to 'src/stdlib')
-rw-r--r--src/stdlib/SDL_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c
index f03f7251b..fdce13533 100644
--- a/src/stdlib/SDL_string.c
+++ b/src/stdlib/SDL_string.c
@@ -549,7 +549,7 @@ SDL_utf8strlen(const char *str)
const char *p = str;
char ch;
- while ((ch = *(p++))) {
+ while ((ch = *(p++)) != 0) {
/* if top two bits are 1 and 0, it's a continuation byte. */
if ((ch & 0xc0) != 0x80) {
retval++;