chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: clarify test_path_startswith return value (#4508)
[elogind.git]
/
src
/
basic
/
gunicode.c
diff --git
a/src/basic/gunicode.c
b/src/basic/gunicode.c
index d89a2f3ed960a9146b8c50fa97fb3bfa879524ce..e6ac0545a4efc5c0e0d5fc3d0c34c71eda0a53f5 100644
(file)
--- a/
src/basic/gunicode.c
+++ b/
src/basic/gunicode.c
@@
-4,6
+4,8
@@
* Copyright 2000, 2005 Red Hat, Inc.
*/
* Copyright 2000, 2005 Red Hat, Inc.
*/
+#include <stdlib.h>
+
#include "gunicode.h"
#define unichar uint32_t
#include "gunicode.h"
#define unichar uint32_t
@@
-24,7
+26,7
@@
char *
utf8_prev_char (const char *p)
{
char *
utf8_prev_char (const char *p)
{
-
while (1
)
+
for (;;
)
{
p--;
if ((*p & 0xc0) != 0x80)
{
p--;
if ((*p & 0xc0) != 0x80)