diff options
author | Ozkan Sezer <sezeroz@gmail.com> | 2019-07-31 00:07:15 +0300 |
---|---|---|
committer | Ozkan Sezer <sezeroz@gmail.com> | 2019-07-31 00:07:15 +0300 |
commit | 1d7cb05657d29dbcf08f35bb657226e684cd18b8 (patch) | |
tree | 05f98aa7a48bdc3287c8cec2657b24eafe237f1d /src/stdlib | |
parent | 3d9295fa5f1be6c95329e0511541715bb4812a68 (diff) | |
download | sdl-1d7cb05657d29dbcf08f35bb657226e684cd18b8.tar.gz |
better readability..
Diffstat (limited to 'src/stdlib')
-rw-r--r-- | src/stdlib/SDL_string.c | 2 |
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++; |