[riot-notifications] [RIOT-OS/RIOT] nrf802154: don't call memcpy if iolist->iol_len==0 (#11176)

Koen Zandberg 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:
https://github.com/RIOT-OS/RIOT/pull/11176#issuecomment-473276571
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190315/1f3e0307/attachment-0001.html>


More information about the notifications mailing list