[riot-notifications] [RIOT-OS/RIOT] tests/driver_sx127x: missing initializer for member 'iolist::iol_next'? (#12137)

Martine Lenders notifications at github.com
Tue Sep 10 15:01:52 CEST 2019

If my suspicion is correct, you need to do it this way:

    iolist_t iolist = {
        .iol_base = argv[1],
    iolist.iol_len = strlen(argv[1]) + 1;

However, since that includes a hidden `memset(&iolist, 0, ...);`, I'd suggest you do it like this:

    iolist_t iolist;

    iolist.iol_base = argv[1]
    iolist.iol_len = strlen(argv[1]) + 1;

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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190910/2a6a68e2/attachment.htm>

More information about the notifications mailing list