Skip to content

Add ISC_{LIST,LINK}_INITIALIZER for designated initializers

Ondřej Surý requested to merge ondrej-add-ISC_LIST,LINK_INITIALIZER into main

Since we are using designated initializers, we were missing initializers for ISC_LIST and ISC_LINK, add them, so you can do

*foo = (foo_t){ .list = ISC_LIST_INITIALIZER };

Instead of:

*foo = (foo_t){ 0 };
ISC_LIST_INIT(foo->list);

Merge request reports