mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Fix a very stupid coverity complaint (CID 416).
In its zeal to keep me from saying memset(x, '0', sizeof(x)), Coverity disallows memset(x, 48, sizeof(x)). Fine. I'll choose a different magic number, see if I care!
This commit is contained in:
parent
5e4d53d535
commit
98cd8c5d16
1 changed files with 1 additions and 1 deletions
|
@ -837,7 +837,7 @@ test_dir_v3_networkstatus(void)
|
|||
rs->published_on = now-1000;
|
||||
strlcpy(rs->nickname, "router4", sizeof(rs->nickname));
|
||||
memset(rs->identity_digest, 34, DIGEST_LEN);
|
||||
memset(rs->descriptor_digest, 48, DIGEST_LEN);
|
||||
memset(rs->descriptor_digest, 47, DIGEST_LEN);
|
||||
rs->addr = 0xC0000203;
|
||||
rs->or_port = 500;
|
||||
rs->dir_port = 1999;
|
||||
|
|
Loading…
Add table
Reference in a new issue