mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-10-17 08:49:27 +00:00
votequorum: Properly initialize atb and atb_string
icmap_get_* behavior is to NOT modify passed variable when it doesn't success. So we must initialize variable before icmap_get_* call. Signed-off-by: Jan Friesse <jfriesse@redhat.com> Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
This commit is contained in:
parent
ff67daa55f
commit
e1801ba497
@ -1211,9 +1211,9 @@ static char *votequorum_readconfig(int runtime)
|
||||
uint32_t node_votes = 0, qdevice_votes = 0;
|
||||
uint32_t node_expected_votes = 0, expected_votes = 0;
|
||||
uint32_t node_count = 0;
|
||||
uint8_t atb;
|
||||
uint8_t atb = 0;
|
||||
int have_nodelist, have_qdevice;
|
||||
char *atb_string;
|
||||
char *atb_string = NULL;
|
||||
char *error = NULL;
|
||||
|
||||
ENTER();
|
||||
|
Loading…
Reference in New Issue
Block a user