1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples/asymcute_mqttsn: do normal assignment instead of memcpy

This commit is contained in:
Kees Bakker 2019-01-06 22:54:44 +01:00
parent b21399b25c
commit 01a170bf0e

View File

@ -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;
}