mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
ctdb:client: Initialize structs and pointers in ctdb_ctrl_(en|dis)able_node()
Found by covscan. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3397e04d71
commit
90fd7674f8
@ -2667,8 +2667,10 @@ int ctdb_ctrl_disable_node(TALLOC_CTX *mem_ctx,
|
||||
int destnode,
|
||||
struct timeval timeout)
|
||||
{
|
||||
struct ctdb_req_control request;
|
||||
struct ctdb_reply_control *reply;
|
||||
struct ctdb_req_control request = {
|
||||
.opcode = 0,
|
||||
};
|
||||
struct ctdb_reply_control *reply = NULL;
|
||||
int ret;
|
||||
|
||||
ctdb_req_control_disable_node(&request);
|
||||
@ -2701,8 +2703,10 @@ int ctdb_ctrl_enable_node(TALLOC_CTX *mem_ctx,
|
||||
int destnode,
|
||||
struct timeval timeout)
|
||||
{
|
||||
struct ctdb_req_control request;
|
||||
struct ctdb_reply_control *reply;
|
||||
struct ctdb_req_control request = {
|
||||
.opcode = 0,
|
||||
};
|
||||
struct ctdb_reply_control *reply = NULL;
|
||||
int ret;
|
||||
|
||||
ctdb_req_control_enable_node(&request);
|
||||
|
Loading…
Reference in New Issue
Block a user