Fixed wrong check

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32326 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Artur Wyszynski 2009-08-13 17:46:39 +00:00
parent 79cf966c2c
commit 818ef0e501

View File

@ -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);