cache_end_transaction(): Allow the hook parameter to be NULL.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37461 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-07-10 15:09:46 +00:00
parent b944766870
commit bb486a7223

View File

@ -2768,8 +2768,9 @@ cache_end_transaction(void* _cache, int32 id,
notify_transaction_listeners(cache, transaction, TRANSACTION_ENDED); notify_transaction_listeners(cache, transaction, TRANSACTION_ENDED);
if (add_transaction_listener(cache, transaction, TRANSACTION_WRITTEN, hook, if (hook != NULL
data) != B_OK) { && add_transaction_listener(cache, transaction, TRANSACTION_WRITTEN,
hook, data) != B_OK) {
return B_NO_MEMORY; return B_NO_MEMORY;
} }