summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-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) {