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
This commit is contained in:
Joshua Sled 2007-02-18 20:21:27 +00:00
parent 41089913e2
commit 493504179c

View File

@ -137,8 +137,10 @@ recurrenceNextInstance(const Recurrence *r, const GDate *ref, GDate *next)
const GDate *start; const GDate *start;
guint mult; guint mult;
g_return_if_fail(r && ref); g_return_if_fail(r);
g_return_if_fail(g_date_valid(&r->start) && g_date_valid(ref)); 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 /* If the ref date comes before the start date then the next
occurrence is always the start date, and we're done. */ occurrence is always the start date, and we're done. */