aboutsummaryrefslogtreecommitdiff
path: root/src/outbound_group_session.c
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-09-13 17:00:40 +0100
committerMark Haines <mjark@negativecurvature.net>2016-09-13 17:00:54 +0100
commita89a169c8991c0b22655722b20cb4602dd7ba911 (patch)
treea4ffeddf2779e5aa1b60a0ddd418eff2a2c6ee3d /src/outbound_group_session.c
parent5926a8fd29ecb997e6c4609e2195e68274d1f9df (diff)
``if`` is not the same as ``for``
Diffstat (limited to 'src/outbound_group_session.c')
-rw-r--r--src/outbound_group_session.c2
1 files changed, 1 insertions, 1 deletions
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;
}