summaryrefslogtreecommitdiff
path: root/source3/aparser/templates
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-15 09:57:47 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-15 09:57:47 +0000
commit027780969910222e375b653c750c50604175763e (patch)
treedeb31e017d57dee2b4e9d9cf13b76b33f11305a7 /source3/aparser/templates
parentba35f793bff1689e9de399957f8ba2da3424328f (diff)
downloadsamba-027780969910222e375b653c750c50604175763e.tar.gz
samba-027780969910222e375b653c750c50604175763e.tar.bz2
samba-027780969910222e375b653c750c50604175763e.zip
need to allocate the union pointer
(This used to be commit c75919a7b9c616beda298e2ae507433731bff20a)
Diffstat (limited to 'source3/aparser/templates')
-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@) {