summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-30 15:56:16 +0200
committerVolker Lendecke <vl@samba.org>2010-08-30 15:57:14 +0200
commit1d3bd5b1c03e7e15fa2f089537cb29fd46797b16 (patch)
tree6b0f0bf6da7181555ca10ac8c21faa8000e983d6
parent4ccf3a05af0f3c09ff8e85c63578cf1857312e6b (diff)
downloadsamba-1d3bd5b1c03e7e15fa2f089537cb29fd46797b16.tar.gz
samba-1d3bd5b1c03e7e15fa2f089537cb29fd46797b16.tar.bz2
samba-1d3bd5b1c03e7e15fa2f089537cb29fd46797b16.zip
s3: Fix some uninitialized variable warnings
-rw-r--r--source3/smbd/smb2_server.c2
-rw-r--r--source3/smbd/smb2_tcon.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index b9fc3dc523..eb19d67b11 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -2042,7 +2042,7 @@ void smbd_smb2_first_negprot(struct smbd_server_connection *sconn,
const uint8_t *inbuf, size_t size)
{
NTSTATUS status;
- struct smbd_smb2_request *req;
+ struct smbd_smb2_request *req = NULL;
struct tevent_req *subreq;
if (lp_security() == SEC_SHARE) {
diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c
index e1b6775ced..8f80a56a42 100644
--- a/source3/smbd/smb2_tcon.c
+++ b/source3/smbd/smb2_tcon.c
@@ -43,11 +43,11 @@ NTSTATUS smbd_smb2_request_process_tcon(struct smbd_smb2_request *req)
DATA_BLOB in_path_buffer;
char *in_path_string;
size_t in_path_string_size;
- uint8_t out_share_type;
- uint32_t out_share_flags;
- uint32_t out_capabilities;
- uint32_t out_maximal_access;
- uint32_t out_tree_id;
+ uint8_t out_share_type = 0;
+ uint32_t out_share_flags = 0;
+ uint32_t out_capabilities = 0;
+ uint32_t out_maximal_access = 0;
+ uint32_t out_tree_id = 0;
NTSTATUS status;
bool ok;