summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-07-24 10:21:07 -0400
committerVolker Lendecke <vl@samba.org>2009-07-24 10:23:04 -0400
commit79fd60dd3872f136528821d1c755f55fa60b3450 (patch)
tree1575d1def69efafbd9adf06f5a55cdc514381828 /source3/smbd
parent210181de7503966ea9fbfdbe2c030ab7b04b973c (diff)
downloadsamba-79fd60dd3872f136528821d1c755f55fa60b3450.tar.gz
samba-79fd60dd3872f136528821d1c755f55fa60b3450.tar.bz2
samba-79fd60dd3872f136528821d1c755f55fa60b3450.zip
Fix a few uninitialized variable warnings
I know those warnings are bogus, but both Coverity and gcc don't get it.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_break.c2
-rw-r--r--source3/smbd/smb2_create.c20
-rw-r--r--source3/smbd/smb2_find.c2
-rw-r--r--source3/smbd/smb2_getinfo.c2
-rw-r--r--source3/smbd/smb2_ioctl.c2
-rw-r--r--source3/smbd/smb2_negprot.c2
-rw-r--r--source3/smbd/smb2_notify.c2
-rw-r--r--source3/smbd/smb2_read.c4
-rw-r--r--source3/smbd/smb2_server.c2
-rw-r--r--source3/smbd/smb2_write.c2
10 files changed, 20 insertions, 20 deletions
diff --git a/source3/smbd/smb2_break.c b/source3/smbd/smb2_break.c
index 25952fdf0d..ba02dad62f 100644
--- a/source3/smbd/smb2_break.c
+++ b/source3/smbd/smb2_break.c
@@ -92,7 +92,7 @@ static void smbd_smb2_request_oplock_break_done(struct tevent_req *subreq)
int i = req->current_idx;
uint64_t in_file_id_persistent;
uint64_t in_file_id_volatile;
- uint8_t out_oplock_level;
+ uint8_t out_oplock_level = 0;
DATA_BLOB outbody;
NTSTATUS status;
NTSTATUS error; /* transport error */
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index b455f82d80..511e448ac6 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -141,16 +141,16 @@ static void smbd_smb2_request_create_done(struct tevent_req *subreq)
uint8_t *outhdr;
DATA_BLOB outbody;
DATA_BLOB outdyn;
- uint8_t out_oplock_level;
- uint32_t out_create_action;
- NTTIME out_creation_time;
- NTTIME out_last_access_time;
- NTTIME out_last_write_time;
- NTTIME out_change_time;
- uint64_t out_allocation_size;
- uint64_t out_end_of_file;
- uint32_t out_file_attributes;
- uint64_t out_file_id_volatile;
+ uint8_t out_oplock_level = 0;
+ uint32_t out_create_action = 0;
+ NTTIME out_creation_time = 0;
+ NTTIME out_last_access_time = 0;
+ NTTIME out_last_write_time = 0;
+ NTTIME out_change_time = 0;
+ uint64_t out_allocation_size = 0;
+ uint64_t out_end_of_file = 0;
+ uint32_t out_file_attributes = 0;
+ uint64_t out_file_id_volatile = 0;
NTSTATUS status;
NTSTATUS error; /* transport error */
diff --git a/source3/smbd/smb2_find.c b/source3/smbd/smb2_find.c
index 55ea1c5a9f..89ba54c7e1 100644
--- a/source3/smbd/smb2_find.c
+++ b/source3/smbd/smb2_find.c
@@ -137,7 +137,7 @@ static void smbd_smb2_request_find_done(struct tevent_req *subreq)
DATA_BLOB outbody;
DATA_BLOB outdyn;
uint16_t out_output_buffer_offset;
- DATA_BLOB out_output_buffer;
+ DATA_BLOB out_output_buffer = data_blob_null;
NTSTATUS status;
NTSTATUS error; /* transport error */
diff --git a/source3/smbd/smb2_getinfo.c b/source3/smbd/smb2_getinfo.c
index 5a6e3d7ecb..b3cf892217 100644
--- a/source3/smbd/smb2_getinfo.c
+++ b/source3/smbd/smb2_getinfo.c
@@ -130,7 +130,7 @@ static void smbd_smb2_request_getinfo_done(struct tevent_req *subreq)
DATA_BLOB outbody;
DATA_BLOB outdyn;
uint16_t out_output_buffer_offset;
- DATA_BLOB out_output_buffer;
+ DATA_BLOB out_output_buffer = data_blob_null;
NTSTATUS status;
NTSTATUS error; /* transport error */
diff --git a/source3/smbd/smb2_ioctl.c b/source3/smbd/smb2_ioctl.c
index 85da92e6c0..e1e26f1c59 100644
--- a/source3/smbd/smb2_ioctl.c
+++ b/source3/smbd/smb2_ioctl.c
@@ -126,7 +126,7 @@ static void smbd_smb2_request_ioctl_done(struct tevent_req *subreq)
uint64_t in_file_id_volatile;
uint32_t out_input_offset;
uint32_t out_output_offset;
- DATA_BLOB out_output_buffer;
+ DATA_BLOB out_output_buffer = data_blob_null;
NTSTATUS status;
NTSTATUS error; /* transport error */
diff --git a/source3/smbd/smb2_negprot.c b/source3/smbd/smb2_negprot.c
index b312a7fa47..a60ea63b00 100644
--- a/source3/smbd/smb2_negprot.c
+++ b/source3/smbd/smb2_negprot.c
@@ -76,7 +76,7 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req)
size_t c;
uint16_t security_mode;
uint16_t dialect_count;
- uint16_t dialect;
+ uint16_t dialect = 0;
uint32_t capabilities;
/* TODO: drop the connection with INVALI_PARAMETER */
diff --git a/source3/smbd/smb2_notify.c b/source3/smbd/smb2_notify.c
index f6d83aeeed..4b9cbc495b 100644
--- a/source3/smbd/smb2_notify.c
+++ b/source3/smbd/smb2_notify.c
@@ -108,7 +108,7 @@ static void smbd_smb2_request_notify_done(struct tevent_req *subreq)
DATA_BLOB outbody;
DATA_BLOB outdyn;
uint16_t out_output_buffer_offset;
- DATA_BLOB out_output_buffer;
+ DATA_BLOB out_output_buffer = data_blob_null;
NTSTATUS status;
NTSTATUS error; /* transport error */
diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c
index 42993511ec..c0521253d3 100644
--- a/source3/smbd/smb2_read.c
+++ b/source3/smbd/smb2_read.c
@@ -117,8 +117,8 @@ static void smbd_smb2_request_read_done(struct tevent_req *subreq)
DATA_BLOB outbody;
DATA_BLOB outdyn;
uint8_t out_data_offset;
- DATA_BLOB out_data_buffer;
- uint32_t out_data_remaining;
+ DATA_BLOB out_data_buffer = data_blob_null;
+ uint32_t out_data_remaining = 0;
NTSTATUS status;
NTSTATUS error; /* transport error */
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 204e57d860..2ae2ed29f7 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -1523,7 +1523,7 @@ static void smbd_smb2_request_incoming(struct tevent_req *subreq)
struct smbd_server_connection *conn = tevent_req_callback_data(subreq,
struct smbd_server_connection);
NTSTATUS status;
- struct smbd_smb2_request *req;
+ struct smbd_smb2_request *req = NULL;
status = smbd_smb2_request_read_recv(subreq, conn, &req);
TALLOC_FREE(subreq);
diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c
index f1606be623..9f26f333c1 100644
--- a/source3/smbd/smb2_write.c
+++ b/source3/smbd/smb2_write.c
@@ -124,7 +124,7 @@ static void smbd_smb2_request_write_done(struct tevent_req *subreq)
uint8_t *outhdr;
DATA_BLOB outbody;
DATA_BLOB outdyn;
- uint32_t out_count;
+ uint32_t out_count = 0;
NTSTATUS status;
NTSTATUS error; /* transport error */