clang-tidy test_bson memcmp check return

This commit is contained in:
Daniel Agar 2017-01-29 21:53:22 -05:00
parent 070cd55636
commit 37a2e331c4

View File

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