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