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:
Jan Friesse 2014-02-26 13:01:09 +01:00
parent ff67daa55f
commit e1801ba497

View File

@ -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();