uuid_list_s += 1 + strlen(uuid); uuid_len += 1 + strlen(uuid); 
uuid_list_s += strlen(uuid); uuid_len += strlen(uuid); uuid_list_s++; uuid_len++; 
expand_list(GListPtr list, int clones,	    char **rsc_list, char **node_list, char **uuid_list){	int rsc_len = 0;	int node_len = 0;	int uuid_len = 0;	int list_len = 100 * clones;	char *rsc_list_s = NULL;	char *node_list_s = NULL;	char *uuid_list_s = NULL;	const char *uuid = NULL;	const char *uname = NULL;	const char *rsc_id = NULL;	const char *last_uuid = NULL;	const char *last_rsc_id = NULL;	  clone_expand_reallocate:	if(rsc_list != NULL) {		crm_malloc0(*rsc_list, sizeof(char)*list_len);		rsc_list_s = *rsc_list;		rsc_len = 0;	}	if(node_list != NULL) {		crm_malloc0(*node_list, sizeof(char)*list_len);		node_list_s = *node_list;		node_len = 0;	}	if(uuid_list != NULL) {		crm_malloc0(*uuid_list, sizeof(char)*list_len);		uuid_list_s = *uuid_list;		uuid_len = 0;	}		slist_iter(entry, notify_entry_t, list, lpc,		   rsc_id = entry->rsc->id;		   CRM_DEV_ASSERT(rsc_id != NULL);		   if(crm_assert_failed) {			   rsc_id = "__none__";		   }		   uuid = NULL;		   if(entry->node) {			   uuid = entry->node->details->id;		   }		   CRM_DEV_ASSERT(uuid != NULL);		   if(crm_assert_failed) {			   uuid = "__none__";		   }		   uname = NULL;		   if(entry->node) {			   uname = entry->node->details->uname;		   }		   CRM_DEV_ASSERT(uname != NULL);		   if(crm_assert_failed) {			   uname = "__none__";		   }		   /* filter dups */		   if(safe_str_eq(rsc_id, last_rsc_id)		      && safe_str_eq(uuid, last_uuid)) {			   continue;		   }		   last_rsc_id = rsc_id;		   last_uuid = uuid;		   		   if(rsc_len + 1 + strlen(rsc_id) >= list_len) {			   crm_free(*rsc_list);			   crm_free(*node_list);			   crm_free(*uuid_list);			   list_len *= 2;			   goto clone_expand_reallocate;		   }		   sprintf(rsc_list_s, "%s ", rsc_id);		   rsc_list_s += 1 + strlen(rsc_id);		   rsc_len += 1 + strlen(rsc_id);		   if(node_len + 1 + strlen(uname) >= list_len) {			   crm_free(*rsc_list);			   crm_free(*node_list);			   crm_free(*uuid_list);			   list_len *= 2;			   goto clone_expand_reallocate;		   }		   sprintf(node_list_s, "%s ", uname);		   node_list_s += 1 + strlen(uname);		   node_len += 1 + strlen(uname);		   		   if(uuid_len + 1 + strlen(uuid) >= list_len) {			   crm_free(*rsc_list);			   crm_free(*node_list);			   crm_free(*uuid_list);			   list_len *= 2;			   goto clone_expand_reallocate;		   }		   sprintf(uuid_list_s, "%s ", uuid);		   uuid_list_s += 1 + strlen(uuid);		   uuid_len += 1 + strlen(uuid);		);}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/c36cde346f2eaa02082f36fe13c6c3dccf3c523c/incarnation.c/clean/crm/pengine/incarnation.c