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