1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

s3-srvsvc: fix build warning.

Guenther
This commit is contained in:
Günther Deschner 2008-12-09 12:39:14 +01:00
parent 9985898e94
commit 89e57a8fad

View File

@ -522,7 +522,7 @@ static WERROR init_srv_share_info_ctr(pipes_struct *p,
TALLOC_CTX *ctx = p->mem_ctx;
int i = 0;
int valid_share_count = 0;
bool *allowed = 0;
bool *allowed = 0;
union srvsvc_NetShareCtr ctr;
uint32_t resume_handle = resume_handle_p ? *resume_handle_p : 0;
@ -535,7 +535,7 @@ static WERROR init_srv_share_info_ctr(pipes_struct *p,
num_services = lp_numservices();
unbecome_root();
allowed = TALLOC_ZERO_ARRAY(ctx, int, num_services);
allowed = TALLOC_ZERO_ARRAY(ctx, bool, num_services);
W_ERROR_HAVE_NO_MEMORY(allowed);
/* Count the number of entries. */