rem: gsb_data_transaction_set_bank_references ( transaction_number_tmp, NULL);
add: gsb_data_transaction_set_bank_references ( transaction_number_tmp, "" );
context: void cree_liens_virements_ope_import ( void ){    /* on fait le tour de toutes les opés des comptes */    /* si une opé à un relation_no_compte à -2 , */    /* on recherche le compte associé dont le nom est dans info_banque_guichet */    /*   et une opé ayant une relation_no_compte à -2, le nom du compte dans info_banque_guichet */    /* le même montant, le même jour avec le même tiers */    GSList *list_tmp_transactions;    list_tmp_transactions = gsb_data_transaction_get_transactions_list ();    while ( list_tmp_transactions )    {	gint transaction_number_tmp;	transaction_number_tmp = gsb_data_transaction_get_transaction_number (list_tmp_transactions -> data);	/* if the account number of transfer is -2, it's a transfer */	if ( gsb_data_transaction_get_account_number_transfer (transaction_number_tmp)== -2	     &&	     gsb_data_transaction_get_bank_references (transaction_number_tmp))	{	    /* the name of the contra account is in the bank references with [ and ] */	    gchar *contra_account_name;	    gint contra_account_number;	    contra_account_name = gsb_data_transaction_get_bank_references (transaction_number_tmp);	    contra_account_name++;	    contra_account_name[strlen(contra_account_name)-1] = 0;	    contra_account_number = gsb_data_account_get_no_account_by_name ( contra_account_name );	    if ( contra_account_number == -1 )	    {		/* we have not found the contra-account */		gsb_data_transaction_set_account_number_transfer ( transaction_number_tmp,								   0);		gsb_data_transaction_set_transaction_number_transfer ( transaction_number_tmp,								       0);		gsb_data_transaction_set_bank_references ( transaction_number_tmp,							   NULL);	    }	    else	    {		/* we have found the contra-account, we look for the contra-transaction */		GSList *list_tmp_transactions_2;		list_tmp_transactions_2 = gsb_data_transaction_get_transactions_list ();		while ( list_tmp_transactions_2 )		{		    gint contra_transaction_number_tmp;		    contra_transaction_number_tmp = gsb_data_transaction_get_transaction_number (list_tmp_transactions_2 -> data);		    if ( gsb_data_transaction_get_account_number (contra_transaction_number_tmp) == contra_account_number			 &&			 gsb_data_transaction_get_account_number_transfer ( contra_transaction_number_tmp ) == -2			 &&			 gsb_data_transaction_get_bank_references ( contra_transaction_number_tmp )			 &&			 (!g_strcasecmp ( g_strconcat ("[",						       gsb_data_account_get_name (transaction_number_tmp),						       "]",						       NULL),					  g_strstrip ( gsb_data_transaction_get_bank_references ( contra_transaction_number_tmp )))			  ||			  g_strcasecmp ( gsb_data_account_get_name (transaction_number_tmp),					 g_strstrip ( gsb_data_transaction_get_bank_references ( contra_transaction_number_tmp)))) 			 &&			 ( fabs ( gsb_data_transaction_get_amount (transaction_number_tmp))			   ==			   fabs ( gsb_data_transaction_get_adjusted_amount_for_currency ( contra_transaction_number_tmp,											  gsb_data_account_get_currency (transaction_number_tmp))))			 &&			 ( gsb_data_transaction_get_party_number (transaction_number_tmp)			   ==			   gsb_data_transaction_get_party_number ( contra_transaction_number_tmp ))			 &&			 !g_date_compare ( gsb_data_transaction_get_date (transaction_number_tmp),					   gsb_data_transaction_get_date (contra_transaction_number_tmp)))		    {			/* la 2ème opération correspond en tout point à la 1ère, on met les relations */			gsb_data_transaction_set_transaction_number_transfer ( transaction_number_tmp,									       contra_transaction_number_tmp );			gsb_data_transaction_set_account_number_transfer ( transaction_number_tmp,									   gsb_data_transaction_get_account_number (contra_transaction_number_tmp));			gsb_data_transaction_set_transaction_number_transfer ( contra_transaction_number_tmp,									       transaction_number_tmp);			gsb_data_transaction_set_account_number_transfer ( contra_transaction_number_tmp,									   gsb_data_transaction_get_account_number (transaction_number_tmp));			gsb_data_transaction_set_bank_references ( transaction_number_tmp,								   NULL);			gsb_data_transaction_set_bank_references ( contra_transaction_number_tmp,								   NULL);		    }		    list_tmp_transactions_2 = list_tmp_transactions_2 -> next;		}		/* if no contra-transaction, that transaction becomes normal */		if ( gsb_data_transaction_get_account_number_transfer (transaction_number_tmp) == -2 )		{		    gsb_data_transaction_set_account_number_transfer ( transaction_number_tmp,								       0);		    gsb_data_transaction_set_transaction_number_transfer ( transaction_number_tmp,									   0);		    gsb_data_transaction_set_bank_references ( transaction_number_tmp,							       NULL);		}	    }	}	list_tmp_transactions = list_tmp_transactions -> next;    }}