diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-02 04:51:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:16 -0500 |
commit | 4183b2ac3832cdc2055d7eb3ed7121a9ea91085c (patch) | |
tree | 880492048be3a307eb82ebc663b4a7d3805dd337 /source4/torture/raw/acls.c | |
parent | 3b863542dca8e638cdba6daad043f224d81fcd6a (diff) | |
download | samba-4183b2ac3832cdc2055d7eb3ed7121a9ea91085c.tar.gz samba-4183b2ac3832cdc2055d7eb3ed7121a9ea91085c.tar.bz2 samba-4183b2ac3832cdc2055d7eb3ed7121a9ea91085c.zip |
r4037: fixed a bunch of "might be uninitialised" warnings after enabling -O1 in my compile
(This used to be commit 0928b1f5b68c858922c3ea6c27ed03b5091c6221)
Diffstat (limited to 'source4/torture/raw/acls.c')
-rw-r--r-- | source4/torture/raw/acls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/raw/acls.c b/source4/torture/raw/acls.c index 84d2238a9e..24f18e6cce 100644 --- a/source4/torture/raw/acls.c +++ b/source4/torture/raw/acls.c @@ -41,7 +41,7 @@ static BOOL test_sd(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) union smb_open io; const char *fname = BASEDIR "\\sd.txt"; BOOL ret = True; - int fnum; + int fnum = -1; union smb_fileinfo q; union smb_setfileinfo set; struct security_ace ace; @@ -249,7 +249,7 @@ static BOOL test_creator_sid(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) union smb_open io; const char *fname = BASEDIR "\\creator.txt"; BOOL ret = True; - int fnum; + int fnum = -1; union smb_fileinfo q; union smb_setfileinfo set; struct security_descriptor *sd, *sd_orig, *sd2; @@ -323,7 +323,7 @@ static BOOL test_creator_sid(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) printf("set a sec desc allowing no write by owner\n"); sd = security_descriptor_create(mem_ctx, - NULL, NULL, + owner_sid, NULL, owner_sid, SEC_ACE_TYPE_ACCESS_ALLOWED, SEC_RIGHTS_FILE_READ | SEC_STD_ALL, @@ -440,7 +440,7 @@ static BOOL test_generic_bits(struct smbcli_state *cli, TALLOC_CTX *mem_ctx) union smb_open io; const char *fname = BASEDIR "\\generic.txt"; BOOL ret = True; - int fnum, i; + int fnum = -1, i; union smb_fileinfo q; union smb_setfileinfo set; struct security_descriptor *sd, *sd_orig, *sd2; |