summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_unicode.c')
-rw-r--r--src/lib/eina/eina_unicode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eina/eina_unicode.c b/src/lib/eina/eina_unicode.c
index 75059069c6..a1993de697 100644
--- a/src/lib/eina/eina_unicode.c
+++ b/src/lib/eina/eina_unicode.c
@@ -193,13 +193,15 @@ eina_unicode_escape(const Eina_Unicode *str)
193EAPI Eina_Unicode 193EAPI Eina_Unicode
194eina_unicode_utf8_get_next(const char *buf, int *iindex) 194eina_unicode_utf8_get_next(const char *buf, int *iindex)
195{ 195{
196 int ind = *iindex; 196 int ind;
197 Eina_Unicode r; 197 Eina_Unicode r;
198 unsigned char d; 198 unsigned char d;
199 199
200 EINA_SAFETY_ON_NULL_RETURN_VAL(buf, 0); 200 EINA_SAFETY_ON_NULL_RETURN_VAL(buf, 0);
201 EINA_SAFETY_ON_NULL_RETURN_VAL(iindex, 0); 201 EINA_SAFETY_ON_NULL_RETURN_VAL(iindex, 0);
202 202
203 ind = *iindex;
204
203 /* if this char is the null terminator, exit */ 205 /* if this char is the null terminator, exit */
204 if ((d = buf[ind++]) == 0) return 0; 206 if ((d = buf[ind++]) == 0) return 0;
205 207