Skip to content

Commit

Permalink
properly initialize callback_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Oct 18, 2017
1 parent 1a0bf16 commit bcf1525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/lwmqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ struct lwmqtt_client_t {
size_t write_buf_size, read_buf_size;
uint8_t *write_buf, *read_buf;

void *callback_ref;
lwmqtt_callback_t callback;
void *callback_ref;

void *network;
lwmqtt_network_read_t network_read;
Expand Down
2 changes: 2 additions & 0 deletions src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ void lwmqtt_init(lwmqtt_client_t *client, uint8_t *write_buf, size_t write_buf_s
client->write_buf_size = write_buf_size;
client->read_buf = read_buf;
client->read_buf_size = read_buf_size;

client->callback = NULL;
client->callback_ref = NULL;

client->network = NULL;
client->network_read = NULL;
Expand Down

0 comments on commit bcf1525

Please sign in to comment.