summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Danneman <steven.danneman@isilon.com>2008-09-15 17:39:43 -0700
committerJeremy Allison <jra@samba.org>2008-09-15 17:53:37 -0700
commit61cb830f664068862613440db838c6720996dcca (patch)
tree504fd2f2e91d18ec29d6e3e7f69c0ed9ec5e566e
parent38fff9f9227c2c70a9d522f8355a9e1967e7cb72 (diff)
downloadsamba-61cb830f664068862613440db838c6720996dcca.tar.gz
samba-61cb830f664068862613440db838c6720996dcca.tar.bz2
samba-61cb830f664068862613440db838c6720996dcca.zip
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
-rw-r--r--source3/utils/sharesec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/sharesec.c b/source3/utils/sharesec.c
index 9409690c8b..46f9ecdc7d 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;