diff options
author | Steven Danneman <steven.danneman@isilon.com> | 2008-09-15 17:55:22 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-09-16 09:22:04 +0200 |
commit | f16f12feefc54fa407d5b9539e73a782dc15b12a (patch) | |
tree | b5074348fe2539966fd65320b01a24878f61de2c /source/utils/sharesec.c | |
parent | 3cbed0e4f196af56ca9a1fe7b219c4b86bfcb5cb (diff) | |
download | samba-f16f12feefc54fa407d5b9539e73a782dc15b12a.tar.gz samba-f16f12feefc54fa407d5b9539e73a782dc15b12a.tar.xz samba-f16f12feefc54fa407d5b9539e73a782dc15b12a.zip |
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 931abf7898f574fcf70c239b2ad5c180ff6bb8e8)
Diffstat (limited to 'source/utils/sharesec.c')
-rw-r--r-- | source/utils/sharesec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |