From 23b01be2145de8f0009d60aa5c2300d829389bbc Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 14 Feb 2011 15:45:31 +0900 Subject: [PATCH] Handle invalid initializers gracefully. --- tools/qfcc/source/def.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qfcc/source/def.c b/tools/qfcc/source/def.c index 175e8197e..e76c71a46 100644 --- a/tools/qfcc/source/def.c +++ b/tools/qfcc/source/def.c @@ -233,6 +233,9 @@ initialize_def (symbol_t *sym, type_t *type, expr_t *init, defspace_t *space, } if (!init) return; + convert_name (init); + if (init->type == ex_error) + return; if (init->type == ex_nil) convert_nil (init, type); if (!type_assignable (type, get_type (init))) {