ctdb: Fix the O3 developer build
authorVolker Lendecke <vl@samba.org>
Sat, 7 Nov 2015 19:18:32 +0000 (20:18 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 13 Nov 2015 11:42:21 +0000 (12:42 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Nov 13 12:42:22 CET 2015 on sn-devel-104

ctdb/protocol/protocol_control.c
ctdb/tests/src/comm_server_test.c

index 486a1f2cea06e9130049911e6e0f1b0c00c44600..95edc1a2c3432705c84d62c89c76e72e0d903a28 100644 (file)
@@ -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;
 
index 7a7656f4cd3aee0b583f0bf5108d8d1da5708518..036baac674086a1d7758b221349f0c730fda27fa 100644 (file)
@@ -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);