gesamt: unnoetige strdup calls entfernt
[uebersetzerbau-ss10.git] / gesamt / symtable.c
index 89db8c0e316fe04d3acdb0ad5fdab473f26cbdfc..2a9e96fead530afe68f6547512bb6428194616d4 100644 (file)
@@ -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;