mirror of
https://github.com/emqx/neuron.git
synced 2026-10-23 02:00:57 +08:00
fix(core): initialize plugin common tag size
This commit is contained in:
@@ -30,6 +30,7 @@ void neu_plugin_common_init(neu_plugin_common_t *common)
|
||||
{
|
||||
common->magic = NEU_PLUGIN_MAGIC_NUMBER;
|
||||
common->link_state = NEU_NODE_LINK_STATUS_DISCONNECTED;
|
||||
common->tag_size = 0;
|
||||
}
|
||||
|
||||
bool neu_plugin_common_check(neu_plugin_t *plugin)
|
||||
@@ -45,4 +46,4 @@ int neu_plugin_op(neu_plugin_t *plugin, neu_reqresp_head_t head, void *data)
|
||||
|
||||
return plugin_common->adapter_callbacks->command(plugin_common->adapter,
|
||||
head, data);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user