]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - keys.c
fix a warning
[xonotic/darkplaces.git] / keys.c
diff --git a/keys.c b/keys.c
index e0177edbb5fd7f051f2afaa52c09563102868379..c7342593b6065a103d4e35ce20f2808f1b981834 100644 (file)
--- a/keys.c
+++ b/keys.c
@@ -712,7 +712,7 @@ Key_Console (int key, int unicode)
                else if(keydown[K_SHIFT]) // move cursor to the previous character ignoring colors
                {
                        int             pos;
-                       size_t          inchar;
+                       size_t          inchar = 0;
                        pos = u8_prevbyte(key_line, key_linepos);
                        while (pos)
                                if(pos-1 > 0 && key_line[pos-1] == STRING_COLOR_TAG && isdigit(key_line[pos]))