mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
fix cache.c
This commit is contained in:
@@ -496,7 +496,7 @@ void neu_driver_cache_update_change(neu_driver_cache_t *cache,
|
||||
value.value.bytes.length) {
|
||||
elem->changed = true;
|
||||
} else {
|
||||
if (memcpy(elem->value.value.bytes.bytes,
|
||||
if (memcmp(elem->value.value.bytes.bytes,
|
||||
value.value.bytes.bytes,
|
||||
value.value.bytes.length) != 0) {
|
||||
elem->changed = true;
|
||||
|
||||
Reference in New Issue
Block a user