Skip to content

Commit

Permalink
* FIX [mqtt_client/SDK] fix missing "msg" that was deleted
Browse files Browse the repository at this point in the history
Signed-off-by: jaylin <[email protected]>
  • Loading branch information
JaylinYu committed Jan 8, 2024
1 parent 2527e4f commit 7746164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mqtt/protocol/mqtt/mqtt_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ mqtt_timer_cb(void *arg)
mqtt_pipe_t *p = arg;
mqtt_sock_t *s = p->mqtt_sock;
// disable retransmission
// nni_msg * msg = NULL;
nni_msg * msg = NULL;

Check warning on line 494 in src/mqtt/protocol/mqtt/mqtt_client.c

View check run for this annotation

Codecov / codecov/patch

src/mqtt/protocol/mqtt/mqtt_client.c#L494

Added line #L494 was not covered by tests
// nni_aio * aio;
// uint16_t pid = p->rid;

Expand Down
2 changes: 1 addition & 1 deletion src/mqtt/protocol/mqtt/mqttv5_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ mqtt_timer_cb(void *arg)
{
mqtt_pipe_t *p = arg;
mqtt_sock_t *s = p->mqtt_sock;
// nni_msg * msg;
nni_msg * msg;
// nni_aio * aio;
// uint16_t pid = p->rid;

Expand Down

0 comments on commit 7746164

Please sign in to comment.