diff options
author | David Goulet <dgoulet@torproject.org> | 2017-07-13 17:18:11 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-07-13 17:18:11 -0400 |
commit | 965e3a6628f26d5fb1422fb04aa12e807537a32a (patch) | |
tree | 48b4bc2b8da9f2ccacabc941aab8073c791d59c6 /src/or/hs_service.c | |
parent | 5d64ceb12defdc7db8402088fb2946c35274636a (diff) | |
download | tor-965e3a6628f26d5fb1422fb04aa12e807537a32a.tar.gz tor-965e3a6628f26d5fb1422fb04aa12e807537a32a.zip |
prop224: Fix clang warnings
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.c')
-rw-r--r-- | src/or/hs_service.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/hs_service.c b/src/or/hs_service.c index d8b87d1f2c..5fde42ddbb 100644 --- a/src/or/hs_service.c +++ b/src/or/hs_service.c @@ -80,9 +80,10 @@ HT_GENERATE2(hs_service_ht, hs_service_t, hs_service_node, STATIC hs_service_t * find_service(hs_service_ht *map, const ed25519_public_key_t *pk) { - hs_service_t dummy_service = {0}; + hs_service_t dummy_service; tor_assert(map); tor_assert(pk); + memset(&dummy_service, 0, sizeof(dummy_service)); ed25519_pubkey_copy(&dummy_service.keys.identity_pk, pk); return HT_FIND(hs_service_ht, map, &dummy_service); } |