Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* MDF [mqtt_msg] init objs of proto_Data struct #594

Merged
merged 1 commit into from
Jul 2, 2023
Merged

Conversation

JaylinYu
Copy link
Member

sync fix from nanosdk

@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.12 ⚠️

Comparison is base (8627a14) 53.04% compared to head (61089f6) 52.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #594      +/-   ##
==========================================
- Coverage   53.04%   52.92%   -0.12%     
==========================================
  Files         120      120              
  Lines       36715    36728      +13     
==========================================
- Hits        19474    19440      -34     
- Misses      17241    17288      +47     
Impacted Files Coverage Δ
src/supplemental/mqtt/mqtt_msg.c 45.59% <0.00%> (-1.10%) ⬇️

... and 19 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -16,6 +16,18 @@ nni_proto_data_init(nni_mqtt_proto_data *proto_data)
{
proto_data->var_header.connect.conn_flags.clean_session = true;
proto_data->var_header.connect.keep_alive = 30;
proto_data->var_header.connack.properties = NULL;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a union here, the initialize seems improper?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still a pointer here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we don't need this function, all we need is just memset proto_data is zero.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right

@JaylinYu JaylinYu merged commit f01c667 into main Jul 2, 2023
14 of 16 checks passed
@JaylinYu JaylinYu deleted the jaylin/develop branch July 2, 2023 03:15
@JaylinYu
Copy link
Member Author

JaylinYu commented Jul 2, 2023

TODO: memset proto_data to /0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants