[riot-notifications] [RIOT-OS/RIOT] nrf802154: don't call memcpy if iolist->iol_len==0 (#11176)
notifications at github.com
Fri Mar 15 14:00:16 CET 2019
> Afaik **memcpy** is able to handle size zero
The issue here is not that the `len==0`, but more that the `iol->iol_base == NULL` (which is the case when `iol->iol_len==0`), I've updated the description above, sorry for the confusion.
> **len** will not increase either.
This is just a really small runtime optimization from my side, didn't affect the size of the final binary.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications