Fix a case of the uninitialized blues
authorDale Weiler <killfieldengine@gmail.com>
Sat, 22 Jun 2013 02:25:19 +0000 (02:25 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Sat, 22 Jun 2013 02:25:19 +0000 (02:25 +0000)
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);