X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=uebersetzerbau-ss10.git;a=blobdiff_plain;f=gesamt%2Fsymtable.c;fp=gesamt%2Fsymtable.c;h=2a9e96fead530afe68f6547512bb6428194616d4;hp=89db8c0e316fe04d3acdb0ad5fdab473f26cbdfc;hb=3cc9774c47638019932f476371f731bc61a7f1eb;hpb=c28bcd90568eaca63d5cf347c7a305678c1314a4 diff --git a/gesamt/symtable.c b/gesamt/symtable.c index 89db8c0..2a9e96f 100644 --- a/gesamt/symtable.c +++ b/gesamt/symtable.c @@ -54,7 +54,7 @@ struct symbol *tab_add_symbol(struct symbol *tab, char *ident, short type, short new_elm = (struct symbol *) malloc(sizeof(struct symbol)); new_elm->next = SYMNULL; - new_elm->ident = strdup(ident); + new_elm->ident = ident; new_elm->type = type; new_elm->param_index = param_index; new_elm->soffset = soffset;