Преглед изворни кода

Initialize node_found in nodelist_to_interface fun

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Jan Friesse пре 12 година
родитељ
комит
92b900da67
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      exec/totemconfig.c

+ 1 - 1
exec/totemconfig.c

@@ -352,7 +352,7 @@ static void config_convert_nodelist_to_interface(struct totem_config *totem_conf
 	struct list_head *list;
 	struct totem_ip_if_address *if_addr;
 	struct totem_ip_address node_addr;
-	int node_found;
+	int node_found = 0;
 
 	if (totemip_getifaddrs(&addrs) == -1) {
 		return ;