Fixed wrong check
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32326 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
79cf966c2c
commit
818ef0e501
2
src/system/kernel/cache/block_cache.cpp
vendored
2
src/system/kernel/cache/block_cache.cpp
vendored
@ -2373,7 +2373,7 @@ cache_detach_sub_transaction(void* _cache, int32 id,
|
||||
|
||||
// create a new transaction for the sub transaction
|
||||
cache_transaction* newTransaction = new(std::nothrow) cache_transaction;
|
||||
if (transaction == NULL)
|
||||
if (newTransaction == NULL)
|
||||
return B_NO_MEMORY;
|
||||
|
||||
newTransaction->id = atomic_add(&cache->next_transaction_id, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user