AUDIT: r17526 - gnucash/trunk/src/engine - In check_one_price_date(), replace an strcmp() by safe_strcmp().
Andreas Köhler
andi5 at cvs.gnucash.org
Mon Sep 15 09:13:57 EDT 2008
Author: andi5
Date: 2008-09-15 09:13:57 -0400 (Mon, 15 Sep 2008)
New Revision: 17526
Trac: http://svn.gnucash.org/trac/changeset/17526
Modified:
gnucash/trunk/src/engine/gnc-pricedb.c
Log:
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.
BP
Modified: gnucash/trunk/src/engine/gnc-pricedb.c
===================================================================
--- gnucash/trunk/src/engine/gnc-pricedb.c 2008-09-15 13:13:48 UTC (rev 17525)
+++ gnucash/trunk/src/engine/gnc-pricedb.c 2008-09-15 13:13:57 UTC (rev 17526)
@@ -986,7 +986,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