mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-07-31 08:38:12 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user