[PATCH] ctdb: Fix the O3 developer build
Volker Lendecke
Volker.Lendecke at SerNet.DE
Mon Nov 9 15:09:17 UTC 2015
Hi!
Review&push appreciated!
Thanks,
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
Besuchen Sie uns vom 10.-11.11.15 auf der ISSE!
Information Security Solutions Europe Conference
Hotel Palace Berlin, 20%-Rabattcode: "ISSE15SP"
Meet us at Information Security Conference ISSE!
November 10th - 11th 2015 in Hotel Palace Berlin
For 20% discount take voucher code: "ISSE15SP"
-------------- next part --------------
From 7ccfbcfd73e770720b94d1c68937b49e3db18087 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Sat, 7 Nov 2015 20:18:32 +0100
Subject: [PATCH] ctdb: Fix the O3 developer build
Signed-off-by: Volker Lendecke <vl at samba.org>
---
ctdb/protocol/protocol_control.c | 2 +-
ctdb/tests/src/comm_server_test.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ctdb/protocol/protocol_control.c b/ctdb/protocol/protocol_control.c
index 486a1f2..95edc1a 100644
--- a/ctdb/protocol/protocol_control.c
+++ b/ctdb/protocol/protocol_control.c
@@ -800,7 +800,7 @@ static int ctdb_req_control_data_pull(uint8_t *buf, size_t buflen,
struct ctdb_req_control_data *cd)
{
int ret = 0;
- uint64_t u64;
+ uint64_t u64 = 0;
cd->opcode = opcode;
diff --git a/ctdb/tests/src/comm_server_test.c b/ctdb/tests/src/comm_server_test.c
index 7a7656f..036baac 100644
--- a/ctdb/tests/src/comm_server_test.c
+++ b/ctdb/tests/src/comm_server_test.c
@@ -247,7 +247,8 @@ static void socket_process_client(struct tevent_req *subreq)
subreq, struct tevent_req);
struct socket_process_state *state = tevent_req_data(
req, struct socket_process_state);
- int client_fd, err;
+ int client_fd;
+ int err = 0;
client_fd = accept_recv(subreq, &err);
TALLOC_FREE(subreq);
--
1.9.1
More information about the samba-technical
mailing list