Menu

#34 Avoid an implicit memcpy() in event.c

Unstable_(example)
closed
None
5
2016-04-04
2016-04-03
Pete Batard
No
  • When copying structs, some compilers (e.g. MSVC for ARM) will use an implicit call to memcpy(), which can result in an undefined reference.
  • Use CopyMem() to duplicate struct data instead.

NB: This patch also removes trailing whitespaces in event.c

1 Attachments

Discussion

  • Nigel Croxon

    Nigel Croxon - 2016-04-04
    • status: open --> closed
    • assigned_to: Nigel Croxon
     
  • Nigel Croxon

    Nigel Croxon - 2016-04-04

    Fixed in commit b5b6a81af07a3dfded64bd9a806fcdec46a8203c

    Thank you for your contribution Pete.

     

Log in to post a comment.

MongoDB Logo MongoDB