summaryrefslogtreecommitdiff
path: root/source4/torture/basic
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-12-02 04:51:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:16 -0500
commit4183b2ac3832cdc2055d7eb3ed7121a9ea91085c (patch)
tree880492048be3a307eb82ebc663b4a7d3805dd337 /source4/torture/basic
parent3b863542dca8e638cdba6daad043f224d81fcd6a (diff)
downloadsamba-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/basic')
-rw-r--r--source4/torture/basic/denytest.c2
-rw-r--r--source4/torture/basic/locking.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/basic/denytest.c b/source4/torture/basic/denytest.c
index 70d7a2b2a1..7979778c3f 100644
--- a/source4/torture/basic/denytest.c
+++ b/source4/torture/basic/denytest.c
@@ -1968,7 +1968,7 @@ BOOL torture_denydos_sharing(void)
union smb_fileinfo finfo;
const char *fname = "\\torture_denydos.txt";
NTSTATUS status;
- int fnum1, fnum2;
+ int fnum1 = -1, fnum2 = -1;
BOOL ret = True;
union smb_setfileinfo sfinfo;
TALLOC_CTX *mem_ctx;
diff --git a/source4/torture/basic/locking.c b/source4/torture/basic/locking.c
index c1dd598018..ba7d568706 100644
--- a/source4/torture/basic/locking.c
+++ b/source4/torture/basic/locking.c
@@ -790,7 +790,7 @@ BOOL torture_locktest7(void)
struct smbcli_state *cli1;
const char *fname = "\\lockt7.lck";
int fnum1;
- int fnum2;
+ int fnum2 = -1;
size_t size;
char buf[200];
BOOL correct = False;