Skip to content

Commit 55b5bca

Browse files
author
Phil Longstaff
committed
Fix use of uninitialized variable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev2@17431 57a11ea4-9604-0410-9ed3-97b8803252fd
1 parent f9c661e commit 55b5bca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine/gnc-budget.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ gnc_budget_free(QofInstance *inst)
240240
GncBudget *budget;
241241
BudgetPrivate* priv;
242242

243-
if (budget == NULL)
243+
if (inst == NULL)
244244
return;
245-
g_return_if_fail(GNC_IS_BUDGET(budget));
245+
g_return_if_fail(GNC_IS_BUDGET(inst));
246246

247247
budget = GNC_BUDGET(inst);
248248
priv = GET_PRIVATE(budget);

0 commit comments

Comments
 (0)