From f4a699af83d69eb4ca703d728d949059f3613028 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Wed, 1 Jul 2015 21:19:12 -0400 Subject: [PATCH] CID 1273539: Use right variable in construction check --- src/tools/fs_shell/block_cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/fs_shell/block_cache.cpp b/src/tools/fs_shell/block_cache.cpp index f51e21b01f..72a6268c51 100644 --- a/src/tools/fs_shell/block_cache.cpp +++ b/src/tools/fs_shell/block_cache.cpp @@ -1166,7 +1166,7 @@ fssh_cache_detach_sub_transaction(void* _cache, int32_t id, // create a new transaction for the sub transaction cache_transaction* newTransaction = new(nothrow) cache_transaction; - if (transaction == NULL) + if (newTransaction == NULL) return FSSH_B_NO_MEMORY; newTransaction->id = fssh_atomic_add(&cache->next_transaction_id, 1);