]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - utf8lib.c
Do not load sizes < 0 at all.
[xonotic/darkplaces.git] / utf8lib.c
index f7dff508feedb1d0b8e2d564be1000342e835e87..6fbd5f62a8e2283e560f554ec7ab51f27c9b0697 100644 (file)
--- a/utf8lib.c
+++ b/utf8lib.c
@@ -62,9 +62,8 @@ Uchar utf8_range[5] = {
 static qboolean u8_analyze(const char *_s, size_t *_start, size_t *_len, Uchar *_ch, size_t _maxlen)
 {
        const unsigned char *s = (const unsigned char*)_s;
-       unsigned char bt;//, bc;
-       size_t i;
-       size_t bits, j;
+       size_t i, j;
+       size_t bits = 0;
        Uchar ch;
 
        i = 0;