[Drbd-dev] [CASE-35] Please check double auto-increment on history_uuids[i++].

Jaeheon Kim jhkim at mantech.co.kr
Fri Mar 25 11:30:29 CET 2016


Hi,

According to the following code, local i variable be incremented by twice
in one loop.
Is this auto-increment operation no problem?


receive_uuids110()
{
    ...
    for (i = 0; i < history_uuids; i++)
         peer_device->history_uuids[i++] =
be64_to_cpu(p->other_uuids[pos++]);
    ...
}

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-dev/attachments/20160325/f14b7892/attachment.htm>


More information about the drbd-dev mailing list