From 82527fb92b56fe9b028d4bd8a3cb6535caf69ce2 Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Sat, 6 Oct 2018 20:44:14 +0200 Subject: [PATCH] Put braces around for loop with empty body. --- Source/tmsg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/tmsg.cpp b/Source/tmsg.cpp index f997297c2..5ede9ca4a 100644 --- a/Source/tmsg.cpp +++ b/Source/tmsg.cpp @@ -32,8 +32,9 @@ void __fastcall tmsg_add(BYTE *pbMsg, BYTE bLen) msg->hdr.dwTime = GetTickCount() + 500; msg->hdr.bLen = bLen; memcpy(msg->body, pbMsg, bLen); - for (tail = &sgpTimedMsgHead; *tail; tail = &(*tail)->hdr.pNext) + for (tail = &sgpTimedMsgHead; *tail; tail = &(*tail)->hdr.pNext) { ; + } *tail = msg; }