Simple fix for warning:
authorSteven Danneman <steven.danneman@isilon.com>
Tue, 16 Sep 2008 00:55:22 +0000 (17:55 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 16 Sep 2008 07:22:04 +0000 (09:22 +0200)
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 931abf7898f574fcf70c239b2ad5c180ff6bb8e8)

source/utils/sharesec.c

index 9409690c8be223291d780861dbea8d90aaccdbdb..46f9ecdc7df4578935f8805e7d5d2bf795e69401 100644 (file)
@@ -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;