Skip to content

Commit 04af7b5

Browse files
[qofobject.cpp] check col!=nullptr instead of obj
because obj was already verified non-nullptr a few lines prior. this logic error present since original qofobject.c
1 parent 5de6a08 commit 04af7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libgnucash/engine/qofobject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ qof_object_foreach (QofIdTypeConst type_name, QofBook *book,
201201
return;
202202
}
203203
col = qof_book_get_collection (book, obj->e_type);
204-
if (!obj)
204+
if (!col)
205205
{
206206
return;
207207
}

0 commit comments

Comments
 (0)