mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Make a NULL check in test_dir.c non-redundant.
Should quiet a coverity warning.
This commit is contained in:
parent
7f1f6984da
commit
a4d6d83051
@ -76,6 +76,8 @@ test_dir_formats(void)
|
||||
pk2 = pk_generate(1);
|
||||
pk3 = pk_generate(2);
|
||||
|
||||
test_assert(pk1 && pk2 && pk3);
|
||||
|
||||
get_platform_str(platform, sizeof(platform));
|
||||
r1 = tor_malloc_zero(sizeof(routerinfo_t));
|
||||
r1->address = tor_strdup("18.244.0.1");
|
||||
|
Loading…
Reference in New Issue
Block a user