CID 1273539: Use right variable in construction check
This commit is contained in:
parent
ee056a089c
commit
f4a699af83
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user