Răsfoiți Sursa

Correct not initialized value of amf_comp in
amf_comp_find_from_conn_info ()


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1322 fd59a12c-fef9-0310-b244-a6a79926bd2f

Lon Hohberger 19 ani în urmă
părinte
comite
931abd5380
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      exec/amfcomp.c

+ 1 - 1
exec/amfcomp.c

@@ -827,7 +827,7 @@ struct amf_comp *amf_comp_find_from_conn_info (void *conn)
 	struct amf_application *app;
 	struct amf_sg *sg;
 	struct amf_su *su;
-	struct amf_comp *comp;
+	struct amf_comp *comp = NULL;
 
 	for (app = amf_cluster->application_head; app != NULL; app = app->next) {
 		for (sg = app->sg_head; sg != NULL; sg = sg->next) {