mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
clang-tidy test_bson memcmp check return
This commit is contained in:
parent
070cd55636
commit
37a2e331c4
@ -233,7 +233,7 @@ decode_callback(bson_decoder_t decoder, void *private, bson_node_t node)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (memcmp(sample_data, dbuf, len)) {
|
||||
if (memcmp(sample_data, dbuf, len) != 0) {
|
||||
PX4_ERR("FAIL: decoder: data1 compare fail");
|
||||
return 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user