From 89dbc094106ebf5320c62fa6469529d8b66dfee6 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sun, 20 Aug 2017 09:54:48 +0100 Subject: [PATCH] Added second if clause for completeness. --- libgnucash/engine/gnc-pricedb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libgnucash/engine/gnc-pricedb.c b/libgnucash/engine/gnc-pricedb.c index 3a9057179b..3450417569 100644 --- a/libgnucash/engine/gnc-pricedb.c +++ b/libgnucash/engine/gnc-pricedb.c @@ -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);