add: transactions_list_tmp = transactions_list;  while ( transactions_list_tmp ) { struct_transaction *transaction;  transaction = transactions_list_tmp -> data;  if ( transaction -> transaction_number == no_transaction ) { gsb_transaction_data_save_transaction_pointer ( transaction ); return transaction; }  transactions_list_tmp = transactions_list_tmp -> next; }    return NULL;
context: struct_transaction *gsb_transaction_data_get_transaction_by_no ( gint no_transaction,								 gint no_account ){    GSList *accounts_list;    GSList *transactions_list;    struct_transaction *transaction;    /* if it's a white line or nothing, go away */    if ( no_transaction <= 0)	return NULL;    /* check first if the transaction is in the buffer */    if ( transaction_buffer[0]	 &&	 transaction_buffer[0] -> transaction_number == no_transaction )	return transaction_buffer[0];	    if ( transaction_buffer[1]	 &&	 transaction_buffer[1] -> transaction_number == no_transaction )	return transaction_buffer[1];	    /* if we have an account, we look for the transaction */    if ( no_account != -1 )    {	transactions_list = gsb_account_get_transactions_list ( no_account );	while ( transactions_list )	{	    transaction = transactions_list -> data;	    if ( transaction -> transaction_number == no_transaction )	    {		gsb_transaction_data_save_transaction_pointer ( transaction );		return transaction;	    }	    transactions_list = transactions_list -> next;	}    }    /* if we are here, it's either if no_account = -1     * either we didn't find the transaction in the given account     * so, we check all the accounts, except the one given in the parameters */    accounts_list = gsb_account_get_list_accounts ();    while ( accounts_list )    {	gint i;	i = gsb_account_get_no_account ( accounts_list -> data );	if ( i != no_account )	{	    transactions_list = gsb_account_get_transactions_list ( i );	    while ( transactions_list )	    {		transaction = transactions_list -> data;		if ( transaction -> transaction_number == no_transaction )		{		    gsb_transaction_data_save_transaction_pointer ( transaction );		    return transaction;		}		transactions_list = transactions_list -> next;	    }	}	accounts_list = accounts_list -> next;    }    /* we didn't find any transaction with that number */    return NULL;}