summaryrefslogtreecommitdiff
path: root/source3/aparser/templates/prs_array.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'source3/aparser/templates/prs_array.tpl')
-rw-r--r--source3/aparser/templates/prs_array.tpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/aparser/templates/prs_array.tpl b/source3/aparser/templates/prs_array.tpl
new file mode 100644
index 0000000000..ca707148db
--- /dev/null
+++ b/source3/aparser/templates/prs_array.tpl
@@ -0,0 +1,7 @@
+ if (il->@ARRAYLEN@ > 0) {
+ il->@ELEM@ = (@TYPE@ *)malloc(sizeof(@TYPE@)*il->@ARRAYLEN@);
+ if (!il->@ELEM@) goto fail;
+ if (!prs_@TYPE@s(True, "@ELEM@", ps, depth+1, il->@ELEM@, il->@ARRAYLEN@)) goto fail;
+ } else {
+ il->@ELEM@ = NULL;
+ }