From da36feff7f23ed1cab82e9f07eccf035fd7e858d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 13 Nov 2001 23:21:23 +0000 Subject: [PATCH] oops, failed to notice that relocs on temp defs weren't being done correctly memset wasn't such a good idea :P --- tools/qfcc/source/pr_def.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/pr_def.c b/tools/qfcc/source/pr_def.c index 9c35e1382..bfd000997 100644 --- a/tools/qfcc/source/pr_def.c +++ b/tools/qfcc/source/pr_def.c @@ -252,13 +252,13 @@ PR_GetTempDef (type_t *type, def_t *scope) if (free_temps[size]) { def = free_temps[size]; free_temps[size] = def->next; - memset (def, 0, sizeof (def_t)); def->type = type; } else { def = PR_NewDef (type, 0, scope); def->ofs = *scope->alloc; *scope->alloc += pr_type_size[size]; } + def->freed = def->removed = def->users = 0; def->next = temp_scope.next; temp_scope.next = def; return def;