diff options
-rw-r--r-- | toxcore/Messenger.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 6946e809..4277f16a 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -2567,9 +2567,8 @@ void messenger_save(const Messenger *m, uint8_t *data) | |||
2567 | 2567 | ||
2568 | uint32_t len; | 2568 | uint32_t len; |
2569 | uint16_t type; | 2569 | uint16_t type; |
2570 | uint32_t *data32, size32 = sizeof(uint32_t); | 2570 | uint32_t size32 = sizeof(uint32_t); |
2571 | 2571 | ||
2572 | data32 = (uint32_t *)data; | ||
2573 | memset(data, 0, size32); | 2572 | memset(data, 0, size32); |
2574 | data += size32; | 2573 | data += size32; |
2575 | host_to_lendian32(data, MESSENGER_STATE_COOKIE_GLOBAL); | 2574 | host_to_lendian32(data, MESSENGER_STATE_COOKIE_GLOBAL); |