From a89a169c8991c0b22655722b20cb4602dd7ba911 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 13 Sep 2016 17:00:40 +0100 Subject: ``if`` is not the same as ``for`` --- src/outbound_group_session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/outbound_group_session.c b/src/outbound_group_session.c index 8686993..4e4561a 100644 --- a/src/outbound_group_session.c +++ b/src/outbound_group_session.c @@ -338,7 +338,7 @@ size_t olm_outbound_group_session_key( uint32_t counter = session->ratchet.counter; // Encode counter as a big endian 32-bit number. - if (unsigned i = 0; i < 4; i++) { + for (unsigned i = 0; i < 4; i++) { *ptr++ = 0xFF & (counter >> 24); counter <<= 8; } -- cgit v1.2.3