From 027780969910222e375b653c750c50604175763e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 15 May 2000 09:57:47 +0000 Subject: need to allocate the union pointer (This used to be commit c75919a7b9c616beda298e2ae507433731bff20a) --- source3/aparser/templates/union_start.tpl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/aparser') 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@) { -- cgit