From 4aadfbe636b4f8af2cac4d230fc34f10629ba216 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Tue, 24 Apr 2018 14:19:00 +0200 Subject: [PATCH] Bug 795040 - GnuCash crashes when searching for a newly created bill --- libgnucash/engine/gncInvoice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgnucash/engine/gncInvoice.c b/libgnucash/engine/gncInvoice.c index 592363f89a..298a6684f6 100644 --- a/libgnucash/engine/gncInvoice.c +++ b/libgnucash/engine/gncInvoice.c @@ -823,9 +823,9 @@ time64 gncInvoiceGetDatePosted (const GncInvoice *invoice) time64 gncInvoiceGetDateDue (const GncInvoice *invoice) { Transaction *txn; - if (!invoice) return 0; + if (!invoice) return INT64_MAX; txn = gncInvoiceGetPostedTxn (invoice); - if (!txn) return 0; + if (!txn) return INT64_MAX; return xaccTransRetDateDue (txn); }