瀏覽代碼

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 年之前
父節點
當前提交
931abd5380
共有 1 個文件被更改,包括 1 次插入1 次删除
  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_application *app;
 	struct amf_sg *sg;
 	struct amf_sg *sg;
 	struct amf_su *su;
 	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 (app = amf_cluster->application_head; app != NULL; app = app->next) {
 		for (sg = app->sg_head; sg != NULL; sg = sg->next) {
 		for (sg = app->sg_head; sg != NULL; sg = sg->next) {