summaryrefslogtreecommitdiff
path: root/toxcore/group.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/group.c')
-rw-r--r--toxcore/group.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/toxcore/group.c b/toxcore/group.c
index d3f068df..9ade21a9 100644
--- a/toxcore/group.c
+++ b/toxcore/group.c
@@ -1832,8 +1832,8 @@ static unsigned int send_lossy_all_close(const Group_Chats *g_c, int groupnumber
1832 uint64_t comp_val_old = ~0; 1832 uint64_t comp_val_old = ~0;
1833 1833
1834 for (i = 0; i < num_connected_closest; ++i) { 1834 for (i = 0; i < num_connected_closest; ++i) {
1835 uint8_t real_pk[CRYPTO_PUBLIC_KEY_SIZE]; 1835 uint8_t real_pk[CRYPTO_PUBLIC_KEY_SIZE] = {0};
1836 uint8_t dht_temp_pk[CRYPTO_PUBLIC_KEY_SIZE]; 1836 uint8_t dht_temp_pk[CRYPTO_PUBLIC_KEY_SIZE] = {0};
1837 get_friendcon_public_keys(real_pk, dht_temp_pk, g_c->fr_c, g->close[connected_closest[i]].number); 1837 get_friendcon_public_keys(real_pk, dht_temp_pk, g_c->fr_c, g->close[connected_closest[i]].number);
1838 uint64_t comp_val = calculate_comp_value(g->real_pk, real_pk); 1838 uint64_t comp_val = calculate_comp_value(g->real_pk, real_pk);
1839 1839
@@ -1852,8 +1852,8 @@ static unsigned int send_lossy_all_close(const Group_Chats *g_c, int groupnumber
1852 comp_val_old = ~0; 1852 comp_val_old = ~0;
1853 1853
1854 for (i = 0; i < num_connected_closest; ++i) { 1854 for (i = 0; i < num_connected_closest; ++i) {
1855 uint8_t real_pk[CRYPTO_PUBLIC_KEY_SIZE]; 1855 uint8_t real_pk[CRYPTO_PUBLIC_KEY_SIZE] = {0};
1856 uint8_t dht_temp_pk[CRYPTO_PUBLIC_KEY_SIZE]; 1856 uint8_t dht_temp_pk[CRYPTO_PUBLIC_KEY_SIZE] = {0};
1857 get_friendcon_public_keys(real_pk, dht_temp_pk, g_c->fr_c, g->close[connected_closest[i]].number); 1857 get_friendcon_public_keys(real_pk, dht_temp_pk, g_c->fr_c, g->close[connected_closest[i]].number);
1858 uint64_t comp_val = calculate_comp_value(real_pk, g->real_pk); 1858 uint64_t comp_val = calculate_comp_value(real_pk, g->real_pk);
1859 1859