Skip to content

Commit

Permalink
core: block_register: copy missing block attrs
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Klotzbuecher <mk@mkio.de>
  • Loading branch information
kmarkus committed Jun 9, 2020
1 parent d3387dc commit d49d634
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libubx/ubx.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ int ubx_block_register(ubx_node_info_t *ni, struct ubx_proto_block *prot)
strncpy((char*) newb->name, prot->name, UBX_BLOCK_NAME_MAXLEN);

newb->type = prot->type;
newb->attrs = prot->attrs;
newb->prototype = NULL;

/* needs to be set here for ubx_port/config_add */
Expand Down

0 comments on commit d49d634

Please sign in to comment.