(decode_type): TChoice: set the label
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15627 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -493,6 +493,9 @@ decode_type (const char *name, const Type *t, int optional,
|
||||
if (s == NULL)
|
||||
errx(1, "malloc");
|
||||
decode_type (s, m->type, m->optional, forwstr);
|
||||
fprintf(codefile,
|
||||
"(%s)->element = %s;\n",
|
||||
name, m->label);
|
||||
free(s);
|
||||
fprintf(codefile,
|
||||
"}\n");
|
||||
|
Reference in New Issue
Block a user