From 61cb830f664068862613440db838c6720996dcca Mon Sep 17 00:00:00 2001 From: Steven Danneman Date: Mon, 15 Sep 2008 17:39:43 -0700 Subject: [PATCH] Fixed "uninitilized variable" build warning Simple fix for warning: Compiling utils/sharesec.c utils/sharesec.c: In function `change_share_sec': utils/sharesec.c:404: warning: 'sd' might be used uninitialized in this function --- source3/utils/sharesec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/sharesec.c b/source3/utils/sharesec.c index 9409690c8be..46f9ecdc7df 100644 --- a/source3/utils/sharesec.c +++ b/source3/utils/sharesec.c @@ -401,7 +401,7 @@ static void sort_acl(SEC_ACL *the_acl) static int change_share_sec(TALLOC_CTX *mem_ctx, const char *sharename, char *the_acl, enum acl_mode mode) { - SEC_DESC *sd; + SEC_DESC *sd = NULL; SEC_DESC *old = NULL; size_t sd_size = 0; uint32 i, j; -- 2.11.4.GIT