int ref_len = strlen(sys?sys:"none") + strlen(crm_msg_reference) + 2; char *hash_key = NULL; crm_malloc0(hash_key, sizeof(char)*(ref_len));  if(hash_key != NULL) { sprintf(hash_key, "%s_%s", sys?sys:"none", crm_msg_reference); hash_key[ref_len-1] = '\0'; crm_debug_3("created hash key: (%s)", hash_key); }
char *hash_key = crm_concat(sys?sys:"none", crm_msg_reference, '_'); crm_debug_3("created hash key: (%s)", hash_key);
generate_hash_key(const char *crm_msg_reference, const char *sys){	int ref_len = strlen(sys?sys:"none") + strlen(crm_msg_reference) + 2;	char *hash_key = NULL;	crm_malloc0(hash_key, sizeof(char)*(ref_len));	if(hash_key != NULL) {		sprintf(hash_key, "%s_%s", sys?sys:"none", crm_msg_reference);		hash_key[ref_len-1] = '\0';		crm_debug_3("created hash key: (%s)", hash_key);	}	return hash_key;}