Fixed wrong check
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32326 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user