diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-06 23:37:51 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-06 23:37:51 +0000 |
commit | c09c3b6078879b2fef28e1c8cdbc9e0966ed2510 (patch) | |
tree | 720e1d8ba84656d60cff8c475755017a0e9cdd20 /toxcore/group.c | |
parent | d26f0eb3bcdd622cc8adae98974a27d7487fc6cb (diff) |
Add support for building the monolith test on android.
Diffstat (limited to 'toxcore/group.c')
-rw-r--r-- | toxcore/group.c | 8 |
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 | ||