better readability..
authorOzkan Sezer <sezeroz@gmail.com>
Wed, 31 Jul 2019 00:07:15 +0300
changeset 12963952ac0c1366f
parent 12962 a1a5dd21bc18
child 12964 59ae19a3902a
better readability..
src/stdlib/SDL_string.c
     1.1 --- a/src/stdlib/SDL_string.c	Wed Jul 31 00:06:50 2019 +0300
     1.2 +++ b/src/stdlib/SDL_string.c	Wed Jul 31 00:07:15 2019 +0300
     1.3 @@ -549,7 +549,7 @@
     1.4      const char *p = str;
     1.5      char ch;
     1.6  
     1.7 -    while ((ch = *(p++))) {
     1.8 +    while ((ch = *(p++)) != 0) {
     1.9          /* if top two bits are 1 and 0, it's a continuation byte. */
    1.10          if ((ch & 0xc0) != 0x80) {
    1.11              retval++;