CID 1273539: Use right variable in construction check

This commit is contained in:
Philippe Saint-Pierre 2015-07-01 21:19:12 -04:00
parent ee056a089c
commit f4a699af83

View File

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