mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 738113 - Crash on reload budget report.
This commit is contained in:
parent
289bfc2aef
commit
238c889da3
@ -578,7 +578,8 @@ gnc_budget_get_account_period_value(const GncBudget *budget, const Account *acco
|
||||
Timespec
|
||||
gnc_budget_get_period_start_date(const GncBudget *budget, guint period_num)
|
||||
{
|
||||
Timespec ts;
|
||||
Timespec ts = {0, 0};
|
||||
g_return_val_if_fail (GNC_IS_BUDGET(budget), ts);
|
||||
timespecFromTime64(
|
||||
&ts, recurrenceGetPeriodTime(&GET_PRIVATE(budget)->recurrence,
|
||||
period_num, FALSE));
|
||||
@ -588,7 +589,8 @@ gnc_budget_get_period_start_date(const GncBudget *budget, guint period_num)
|
||||
Timespec
|
||||
gnc_budget_get_period_end_date(const GncBudget *budget, guint period_num)
|
||||
{
|
||||
Timespec ts;
|
||||
Timespec ts = {0, 0};
|
||||
g_return_val_if_fail (GNC_IS_BUDGET(budget), ts);
|
||||
timespecFromTime64(
|
||||
&ts, recurrenceGetPeriodTime(&GET_PRIVATE(budget)->recurrence, period_num, TRUE));
|
||||
return ts;
|
||||
|
Loading…
Reference in New Issue
Block a user