[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
pull/2150/head
Christopher Lam 5 months ago
parent 5de6a0800f
commit 04af7b5fa6

@ -201,7 +201,7 @@ qof_object_foreach (QofIdTypeConst type_name, QofBook *book,
return;
}
col = qof_book_get_collection (book, obj->e_type);
if (!obj)
if (!col)
{
return;
}

Loading…
Cancel
Save