From 493504179ccd1a4c26b1f7534a703fc6292f5c95 Mon Sep 17 00:00:00 2001 From: Joshua Sled Date: Sun, 18 Feb 2007 20:21:27 +0000 Subject: [PATCH] Separate out the tests; in case they occur, you then know which condition to look for. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15604 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/Recurrence.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/Recurrence.c b/src/engine/Recurrence.c index c0dc10f9c1..32832e4522 100644 --- a/src/engine/Recurrence.c +++ b/src/engine/Recurrence.c @@ -137,8 +137,10 @@ recurrenceNextInstance(const Recurrence *r, const GDate *ref, GDate *next) const GDate *start; guint mult; - g_return_if_fail(r && ref); - g_return_if_fail(g_date_valid(&r->start) && g_date_valid(ref)); + g_return_if_fail(r); + g_return_if_fail(ref); + g_return_if_fail(g_date_valid(&r->start)); + g_return_if_fail(g_date_valid(ref)); /* If the ref date comes before the start date then the next occurrence is always the start date, and we're done. */