summaryrefslogtreecommitdiff
path: root/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/copy.c b/copy.c
index 80d5a52..58ba390 100644
--- a/copy.c
+++ b/copy.c
@@ -126,7 +126,7 @@ static void copy_type(Copier *c, Type *out, Type *in) {
Field *fout = &out->struc->fields[i];
Field *fin = &in->struc->fields[i];
*fout = *fin;
- copy_type(c, fout->type = allocr_malloc(c->allocr, sizeof *fout->type), fin->type);
+ copy_type(c, &fout->type, &fin->type);
}
} break;
}