diff options
author | Stefan Schweter <stefan@schweter.it> | 2016-10-12 22:48:41 +0200 |
---|---|---|
committer | Stefan Schweter <stefan@schweter.it> | 2016-10-12 22:48:41 +0200 |
commit | e7f1334f07e361290f3c682565963f8c0166f132 (patch) | |
tree | f7b63feeea0cb30d048f79939419da97b63bc84c /src/basic/gunicode.c | |
parent | 6612379adf2eceb7275cec26b5441328f56407c5 (diff) | |
download | systemd-e7f1334f07e361290f3c682565963f8c0166f132.tar.gz |
basic: use for() loop instead of while()
Diffstat (limited to 'src/basic/gunicode.c')
-rw-r--r-- | src/basic/gunicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/gunicode.c b/src/basic/gunicode.c index 542110503f..e6ac0545a4 100644 --- a/src/basic/gunicode.c +++ b/src/basic/gunicode.c @@ -26,7 +26,7 @@ char * utf8_prev_char (const char *p) { - while (1) + for (;;) { p--; if ((*p & 0xc0) != 0x80) |