]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - utf8.c
Make ftepps __NULL__ translate to gmqccs untyped nil keyword (this isn't correct...
[xonotic/gmqcc.git] / utf8.c
diff --git a/utf8.c b/utf8.c
old mode 100644 (file)
new mode 100755 (executable)
index 209317b..a10a11a
--- a/utf8.c
+++ b/utf8.c
@@ -198,7 +198,7 @@ uchar_t u8_getchar(const char *_s, const char **_end)
 
     if (!u8_analyze(_s, &st, &ln, &ch, 0x10))
         ch = 0;
-    if (_end)
+    else if (_end)
         *_end = _s + st + ln;
     return ch;
 }
@@ -210,7 +210,7 @@ uchar_t u8_getnchar(const char *_s, const char **_end, size_t _maxlen)
 
     if (!u8_analyze(_s, &st, &ln, &ch, _maxlen))
         ch = 0;
-    if (_end)
+    else if (_end)
         *_end = _s + st + ln;
     return ch;
 }