mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-12-18 00:11:06 +00:00
Fix a case of the uninitialized blues
This commit is contained in:
parent
adc9e7bf22
commit
b534aca263
1 changed files with 3 additions and 2 deletions
5
lexer.c
5
lexer.c
|
@ -75,8 +75,9 @@ static bool lexwarn(lex_file *lex, int warntype, const char *fmt, ...)
|
||||||
lex_ctx ctx;
|
lex_ctx ctx;
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
ctx.file = lex->name;
|
ctx.file = lex->name;
|
||||||
ctx.line = lex->sline;
|
ctx.line = lex->sline;
|
||||||
|
ctx.column = lex->column;
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
r = vcompile_warning(ctx, warntype, fmt, ap);
|
r = vcompile_warning(ctx, warntype, fmt, ap);
|
||||||
|
|
Loading…
Reference in a new issue