Skip to content
Snippets Groups Projects
Commit 01a170bf authored by Kees Bakker's avatar Kees Bakker
Browse files

examples/asymcute_mqttsn: do normal assignment instead of memcpy

parent b21399b2
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ static int _topic_find(asymcute_topic_t *t, const char *name)
if (asymcute_topic_is_reg(&_topics[i]) &&
(strncmp(name, _topics[i].name, sizeof(_topics[i].name)) == 0)) {
if (t) {
memcpy(t, &_topics[i], sizeof(asymcute_topic_t));
*t = _topics[i];
}
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment