summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-03 01:37:55 +0200
committerGünther Deschner <gd@samba.org>2008-06-03 01:37:55 +0200
commit34413e47070e789c1b547647a409fac9929938d4 (patch)
treef61ee6ef88bdbb83bd37f51dcfb8b7f887fd4248 /source3
parentdbb8e163af87c09d5ec7091a925b369ee1147e5e (diff)
downloadsamba-34413e47070e789c1b547647a409fac9929938d4.tar.gz
samba-34413e47070e789c1b547647a409fac9929938d4.tar.bz2
samba-34413e47070e789c1b547647a409fac9929938d4.zip
netapi: fix some build warnings.
Guenther (This used to be commit 45cd78030f18a792d0761160bb96116d19801109)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/group.c8
-rw-r--r--source3/lib/netapi/localgroup.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/source3/lib/netapi/group.c b/source3/lib/netapi/group.c
index f56c92175b..00e995dc83 100644
--- a/source3/lib/netapi/group.c
+++ b/source3/lib/netapi/group.c
@@ -39,10 +39,10 @@ WERROR NetGroupAdd_r(struct libnetapi_ctx *ctx,
struct dom_sid2 *domain_sid = NULL;
uint32_t rid = 0;
- struct GROUP_INFO_0 *info0;
- struct GROUP_INFO_1 *info1;
- struct GROUP_INFO_2 *info2;
- struct GROUP_INFO_3 *info3;
+ struct GROUP_INFO_0 *info0 = NULL;
+ struct GROUP_INFO_1 *info1 = NULL;
+ struct GROUP_INFO_2 *info2 = NULL;
+ struct GROUP_INFO_3 *info3 = NULL;
union samr_GroupInfo info;
ZERO_STRUCT(connect_handle);
diff --git a/source3/lib/netapi/localgroup.c b/source3/lib/netapi/localgroup.c
index de15dcf699..d3a9aa1270 100644
--- a/source3/lib/netapi/localgroup.c
+++ b/source3/lib/netapi/localgroup.c
@@ -85,8 +85,8 @@ WERROR NetLocalGroupAdd_r(struct libnetapi_ctx *ctx,
struct dom_sid2 *domain_sid = NULL;
uint32_t rid;
- struct LOCALGROUP_INFO_0 *info0;
- struct LOCALGROUP_INFO_1 *info1;
+ struct LOCALGROUP_INFO_0 *info0 = NULL;
+ struct LOCALGROUP_INFO_1 *info1 = NULL;
const char *alias_name = NULL;
@@ -574,7 +574,7 @@ WERROR NetLocalGroupSetInfo_r(struct libnetapi_ctx *ctx,
struct lsa_String lsa_account_name;
struct policy_handle connect_handle, domain_handle, builtin_handle, alias_handle;
struct dom_sid2 *domain_sid = NULL;
- enum samr_AliasInfoEnum alias_level;
+ enum samr_AliasInfoEnum alias_level = 0;
union samr_AliasInfo *alias_info = NULL;
if (!r->in.group_name) {