summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/share.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/netapi/share.c b/source3/lib/netapi/share.c
index 8b9124b513..1d0e1810f1 100644
--- a/source3/lib/netapi/share.c
+++ b/source3/lib/netapi/share.c
@@ -337,12 +337,15 @@ WERROR NetShareEnum_r(struct libnetapi_ctx *ctx,
info_ctr.level = r->in.level;
switch (r->in.level) {
case 0:
+ ZERO_STRUCT(ctr0);
info_ctr.ctr.ctr0 = &ctr0;
- break;
+ break;
case 1:
+ ZERO_STRUCT(ctr1);
info_ctr.ctr.ctr1 = &ctr1;
break;
case 2:
+ ZERO_STRUCT(ctr2);
info_ctr.ctr.ctr2 = &ctr2;
break;
}