options: fix parsing of boolean attributes
authorRemi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
Sat, 15 Aug 2020 04:50:27 +0000 (13:50 +0900)
committerJo-Philipp Wich <jo@mein.io>
Thu, 20 Aug 2020 13:38:36 +0000 (15:38 +0200)
commit78d52a28c66ad0fd2af250038fdcf4239ad37bf2
tree5c98b1a117cae797a74c7c3faf9e40af3b989fff
parente9b90dfac2225927c035f6a76277b850c282dc9a
options: fix parsing of boolean attributes

Boolean attributes were parsed the same way as string attributes,
so a value of { "bool_attr": "true" } would be parsed correctly, but
{ "bool_attr": true } (without quotes) was parsed as false.

Fixes FS#3284

Signed-off-by: Remi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
options.c