Skip to content

Commit

Permalink
Put braces around for loop with empty body.
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew authored and AJenbo committed Oct 6, 2018
1 parent e18a70f commit 82527fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/tmsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 82527fb

Please sign in to comment.