git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38fff9f
)
Fixed "uninitilized variable" build warning
author
Steven Danneman
<steven.danneman@isilon.com>
Tue, 16 Sep 2008 00:39:43 +0000
(17:39 -0700)
committer
Jeremy Allison
<jra@samba.org>
Tue, 16 Sep 2008 00:53:37 +0000
(17:53 -0700)
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
patch
|
blob
|
history
diff --git
a/source3/utils/sharesec.c
b/source3/utils/sharesec.c
index 9409690c8be223291d780861dbea8d90aaccdbdb..46f9ecdc7df4578935f8805e7d5d2bf795e69401 100644
(file)
--- 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;