From 818ef0e5010e37fb97311bb5673c294f4842e2cb Mon Sep 17 00:00:00 2001 From: Artur Wyszynski Date: Thu, 13 Aug 2009 17:46:39 +0000 Subject: [PATCH] Fixed wrong check git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32326 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/cache/block_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/cache/block_cache.cpp b/src/system/kernel/cache/block_cache.cpp index ec4691c73c..6aae2ed7a4 100644 --- a/src/system/kernel/cache/block_cache.cpp +++ b/src/system/kernel/cache/block_cache.cpp @@ -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);