[grisbi-cvs] grisbi/src gsb_data_account.c,1.91,1.92
Pierre Biava
pbiava at users.sourceforge.net
Sun Dec 6 18:18:33 CET 2009
- Previous message: [grisbi-cvs] grisbi/src gsb_data_reconcile.c, 1.20, 1.21 gsb_data_reconcile.h, 1.11, 1.12 gsb_reconcile.c, 1.42, 1.43
- Next message: [grisbi-cvs] grisbi/src gsb_file_util.c, 1.41, 1.42 utils_files.c, 1.46, 1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv26850
Modified Files:
gsb_data_account.c
Log Message:
Fixed a bug in recognition of the id of an account when importing an OFX file
Index: gsb_data_account.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_data_account.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- gsb_data_account.c 14 Oct 2009 20:09:12 -0000 1.91
+++ gsb_data_account.c 6 Dec 2009 17:18:31 -0000 1.92
@@ -647,18 +647,19 @@
list_tmp = gsb_data_account_get_list_accounts ();
while ( list_tmp )
{
- struct_account *account;
+ struct_account *account;
- account = list_tmp -> data;
+ account = list_tmp -> data;
- if ( account -> account_number >= 0 && !account -> closed_account)
- {
- gchar *account_id_save;
- account_id_save = account -> account_id;
- if ( g_ascii_strcasecmp ( account_id, account -> account_id ) == 0 )
- return account -> account_number;
- }
- list_tmp = list_tmp -> next;
+ if ( account -> account_number >= 0
+ && !account -> closed_account
+ && account -> account_id
+ && strlen ( account -> account_id ) > 0 )
+ {
+ if ( g_ascii_strcasecmp ( account_id, account -> account_id ) == 0 )
+ return account -> account_number;
+ }
+ list_tmp = list_tmp -> next;
}
return -1;
}
- Previous message: [grisbi-cvs] grisbi/src gsb_data_reconcile.c, 1.20, 1.21 gsb_data_reconcile.h, 1.11, 1.12 gsb_reconcile.c, 1.42, 1.43
- Next message: [grisbi-cvs] grisbi/src gsb_file_util.c, 1.41, 1.42 utils_files.c, 1.46, 1.47
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list