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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17526 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler
2008-09-15 13:13:57 +00:00
parent dff8d7b22d
commit afdb73a911
+1 -1
View File
@@ -986,7 +986,7 @@ check_one_price_date (GNCPrice *price, gpointer user_data)
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;
}