r17551 - gnucash/branches/2.2/src/engine - [r17526] In check_one_price_date(), replace an strcmp() by safe_strcmp().
Andreas Köhler
andi5 at cvs.gnucash.org
Wed Sep 17 13:36:27 EDT 2008
Author: andi5
Date: 2008-09-17 13:36:26 -0400 (Wed, 17 Sep 2008)
New Revision: 17551
Trac: http://svn.gnucash.org/trac/changeset/17551
Modified:
gnucash/branches/2.2/src/engine/gnc-pricedb.c
Log:
[r17526] In check_one_price_date(), replace an strcmp() by safe_strcmp().
When there is no source string set on a price, do not crash on it.
Modified: gnucash/branches/2.2/src/engine/gnc-pricedb.c
===================================================================
--- gnucash/branches/2.2/src/engine/gnc-pricedb.c 2008-09-17 17:36:18 UTC (rev 17550)
+++ gnucash/branches/2.2/src/engine/gnc-pricedb.c 2008-09-17 17:36:26 UTC (rev 17551)
@@ -985,7 +985,7 @@
user_data);
if (!data->delete_user) {
source = gnc_price_get_source (price);
- if (strcmp(source, "Finance::Quote") != 0) {
+ if (safe_strcmp(source, "Finance::Quote") != 0) {
LEAVE("Not an automatic quote");
return TRUE;
}
More information about the gnucash-changes
mailing list