diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-10-26 22:03:44 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-10-26 22:40:41 -0400 |
commit | 98cd8c5d167450733fcef804838919e528e13ad3 (patch) | |
tree | a6534db4df6b3b5b41ef18f8f2c8b059fcd7de28 /src/test | |
parent | 5e4d53d535a3cc9903250b3df0caa829f1c5e4bf (diff) | |
download | tor-98cd8c5d167450733fcef804838919e528e13ad3.tar tor-98cd8c5d167450733fcef804838919e528e13ad3.tar.gz |
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!
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index ca55c115a..b7ee40329 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -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; |