From 519349a3b2e8f06d419e8c1b8c1043f7761a0de4 Mon Sep 17 00:00:00 2001 From: Steven Danneman Date: Mon, 15 Sep 2008 17:54:21 -0700 Subject: [PATCH] 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 (cherry picked from commit da582a6e5d95c54d284fbe9d713ede9ef8a9793d) --- source/utils/sharesec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/utils/sharesec.c b/source/utils/sharesec.c index 9409690c8be..46f9ecdc7df 100644 --- a/source/utils/sharesec.c +++ b/source/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