mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Fix some 'dereference-before-null-check' warnings in test_circuitlist.c
Found by Coverity Scan. [CID 1234704, 1234705, 1234706]
This commit is contained in:
parent
0e66edb254
commit
c4d0d30bf3
@ -79,6 +79,10 @@ test_clist_maps(void *arg)
|
|||||||
memset(&cam, 0, sizeof(cam));
|
memset(&cam, 0, sizeof(cam));
|
||||||
memset(&cdm, 0, sizeof(cdm));
|
memset(&cdm, 0, sizeof(cdm));
|
||||||
|
|
||||||
|
tt_assert(ch1);
|
||||||
|
tt_assert(ch2);
|
||||||
|
tt_assert(ch3);
|
||||||
|
|
||||||
ch1->cmux = tor_malloc(1);
|
ch1->cmux = tor_malloc(1);
|
||||||
ch2->cmux = tor_malloc(1);
|
ch2->cmux = tor_malloc(1);
|
||||||
ch3->cmux = tor_malloc(1);
|
ch3->cmux = tor_malloc(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user