summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
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/rpc
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/rpc')
-rw-r--r--source4/torture/rpc/samlogon.c6
-rw-r--r--source4/torture/rpc/xplogin.c2
2 files changed, 3 insertions, 5 deletions
diff --git a/source4/torture/rpc/samlogon.c b/source4/torture/rpc/samlogon.c
index e7c04b6ad1..821a823595 100644
--- a/source4/torture/rpc/samlogon.c
+++ b/source4/torture/rpc/samlogon.c
@@ -72,10 +72,8 @@ static NTSTATUS check_samlogon(struct samlogon_state *samlogon_state,
struct netr_LogonSamLogonEx *r_ex = &samlogon_state->r_ex;
struct netr_LogonSamLogonWithFlags *r_flags = &samlogon_state->r_flags;
struct netr_NetworkInfo ninfo;
-
- struct netr_SamBaseInfo *base;
-
- uint16 validation_level;
+ struct netr_SamBaseInfo *base = NULL;
+ uint16 validation_level = 0;
samlogon_state->r.in.logon.network = &ninfo;
samlogon_state->r_ex.in.logon.network = &ninfo;
diff --git a/source4/torture/rpc/xplogin.c b/source4/torture/rpc/xplogin.c
index 8b7ccf115d..0007955e08 100644
--- a/source4/torture/rpc/xplogin.c
+++ b/source4/torture/rpc/xplogin.c
@@ -775,7 +775,7 @@ static NTSTATUS test_getallsids(struct smbcli_transport *transport,
struct samr_Connect4 r4;
struct policy_handle connect_handle, user_handle;
struct policy_handle builtin_handle, domain_handle;
- struct dom_sid *domain_sid;
+ struct dom_sid *domain_sid = NULL;
struct dom_sid *user_sid;
struct dom_sid *primary_group_sid;