summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/aparser/templates/union_start.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/aparser/templates/union_start.tpl b/source3/aparser/templates/union_start.tpl
index aa052be697..a46c99c1e1 100644
--- a/source3/aparser/templates/union_start.tpl
+++ b/source3/aparser/templates/union_start.tpl
@@ -1 +1,3 @@
+ il->@ELEM@ = (void *)malloc(sizeof(*(il->@ELEM@)));
+ if (!il->@ELEM@) goto fail;
switch (il->@SWITCH@) {