From 3deee307a83a1b49eee5c917b86440bdc2aa75a9 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 28 Apr 2007 08:48:01 +0000 Subject: [PATCH] check for uninitialized variables in return statements --- tools/qfcc/source/expr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index 7f1374ec4..7c091da0f 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -2078,6 +2078,7 @@ return_expr (function_t *f, expr_t *e) e->e.float_val = e->e.integer_val; t = &type_float; } + check_initialized (e); if (t == &type_void) { if (e->type == ex_nil) { t = f->def->type->aux_type;