From 932de6c252b2420c3e0f0a8d4d90463d59ae4869 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 31 Jul 2008 18:46:11 -0700 Subject: BR 2034542: fix crash when touching __FILE__ Touching __FILE__ would cause a dereference of an uninitialized pointer. Fix. --- preproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'preproc.c') diff --git a/preproc.c b/preproc.c index 7ba1b6f..feb1164 100644 --- a/preproc.c +++ b/preproc.c @@ -3493,7 +3493,7 @@ again: if (!m->expansion) { if (!strcmp("__FILE__", m->name)) { int32_t num = 0; - char *file; + char *file = NULL; src_get(&num, &file); tline->text = nasm_quote(file, strlen(file)); tline->type = TOK_STRING; -- cgit v1.2.3