Skip to contentSkip to conversation

opensm/osm_perfmgr.c: Eliminate compile warning

PATCH In review Hal Rosenstock 2 participants 2 messages Jul 31, 2012 – Aug 1, 2012 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_perfmgr.c: Eliminate compile warning

osm_perfmgr_db.c: In function perfmgr_db_delete_inactive:
osm_perfmgr_db.c:218: warning: guid_list may be used uninitialized in this function

---

opensm/osm_perfmgr_db.c +1 -1
index fdf3660..98b587d 100644
@@ -215,7 +215,7 @@ perfmgr_db_delete_inactive(perfmgr_db_t * db, unsigned *cnt)
 	perfmgr_db_err_t rc = PERFMGR_EVENT_DB_SUCCESS;
 	int i = 0;
 	int num = 0;
-	uint64_t * guid_list;
+	uint64_t * guid_list = NULL;
 	cl_map_item_t * p_map_item = cl_qmap_head(&db->pc_data);
 
 	if (p_map_item == cl_qmap_end(&db->pc_data)) {

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to a message not in the archive

Hi Hal,

Quoted 6 lines · Hal Rosenstock

osm_perfmgr_db.c: In function perfmgr_db_delete_inactive:
osm_perfmgr_db.c:218: warning: guid_list may be used uninitialized in this function

---

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html