Added second if clause for completeness.

This commit is contained in:
Robert Fewell 2017-08-20 09:54:48 +01:00
parent e1d4075273
commit 89dbc09410

View File

@ -1376,6 +1376,7 @@ compare_prices_by_commodity_date (gconstpointer a, gconstpointer b)
if (!a && !b) return 0;
/* nothing is always less than something */
if (!a) return -1;
if (!b) return 1;
comma = gnc_price_get_commodity ((GNCPrice *) a);
commb = gnc_price_get_commodity ((GNCPrice *) b);