From 9332ea30bc4198113610b0bb36a980e2743e2870 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 3 Jul 2002 19:12:29 +0000 Subject: [PATCH] oops, forgot to copy the string again when I went from strdup to save_string --- tools/qfcc/source/def.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/def.c b/tools/qfcc/source/def.c index c835607a2..a280eb689 100644 --- a/tools/qfcc/source/def.c +++ b/tools/qfcc/source/def.c @@ -266,7 +266,7 @@ new_def (type_t *type, const char *name, scope_t *scope) def->return_addr = __builtin_return_address (0); - def->name = name; + def->name = name ? save_string (name) : 0; def->type = type; def->scope = scope;