]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
Fix a case of the uninitialized blues
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index ac230b6cad39d2e00176f4ac083a241fbff704b7..e0dafc3a6184a094a776e40caed6cb36337007b7 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -75,8 +75,9 @@ static bool lexwarn(lex_file *lex, int warntype, const char *fmt, ...)
     lex_ctx ctx;
     va_list ap;
 
-    ctx.file = lex->name;
-    ctx.line = lex->sline;
+    ctx.file   = lex->name;
+    ctx.line   = lex->sline;
+    ctx.column = lex->column;
 
     va_start(ap, fmt);
     r = vcompile_warning(ctx, warntype, fmt, ap);