[spinel] change parsing of boolean (#2433)

This commit brings/syncs the change in `spinel.c` from wpantund.
This change was done as part of wpantund commit d77e7cbf23 which
addressed some of the fuzzer test issues.
This commit is contained in:
Abtin Keshavarzian
2017-12-20 23:55:07 +00:00
committed by Jonathan Hui
parent 44a7ba393a
commit e45dfa5182
+1 -1
View File
@@ -277,7 +277,7 @@ spinel_datatype_vunpack_(bool in_place, const uint8_t *data_ptr, spinel_size_t d
if (arg_ptr)
{
*arg_ptr = data_ptr[0];
*arg_ptr = data_ptr[0] != 0;
}
ret += sizeof(uint8_t);