diff --git a/tools/qfcc/source/def.c b/tools/qfcc/source/def.c index 5330bad4a..6c525eae1 100644 --- a/tools/qfcc/source/def.c +++ b/tools/qfcc/source/def.c @@ -108,9 +108,9 @@ new_def (const char *name, type_t *type, defspace_t *space, def->name = name ? save_string (name) : 0; def->type = type; - def->space = space; if (storage != st_extern) { + def->space = space; *space->def_tail = def; space->def_tail = &def->next; def->offset = defspace_new_loc (space, type_size (type));