mirror of
https://github.com/espressif/openthread.git
synced 2026-09-19 07:30:11 +00:00
[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:
committed by
Jonathan Hui
parent
44a7ba393a
commit
e45dfa5182
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user