mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +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,
|
int destnode,
|
||||||
struct timeval timeout)
|
struct timeval timeout)
|
||||||
{
|
{
|
||||||
struct ctdb_req_control request;
|
struct ctdb_req_control request = {
|
||||||
struct ctdb_reply_control *reply;
|
.opcode = 0,
|
||||||
|
};
|
||||||
|
struct ctdb_reply_control *reply = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ctdb_req_control_disable_node(&request);
|
ctdb_req_control_disable_node(&request);
|
||||||
@ -2701,8 +2703,10 @@ int ctdb_ctrl_enable_node(TALLOC_CTX *mem_ctx,
|
|||||||
int destnode,
|
int destnode,
|
||||||
struct timeval timeout)
|
struct timeval timeout)
|
||||||
{
|
{
|
||||||
struct ctdb_req_control request;
|
struct ctdb_req_control request = {
|
||||||
struct ctdb_reply_control *reply;
|
.opcode = 0,
|
||||||
|
};
|
||||||
|
struct ctdb_reply_control *reply = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ctdb_req_control_enable_node(&request);
|
ctdb_req_control_enable_node(&request);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user