validate: fix datatype handling of default values
authorJo-Philipp Wich <jo@mein.io>
Sat, 16 Jul 2016 12:52:36 +0000 (14:52 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 26 Jul 2016 10:16:05 +0000 (12:16 +0200)
commitac481cdd999ee84d3f115c33a56397237e95ec64
treefd1a880fac81fa13baffd60b436afc18a79d97a7
parentaead2c0cbffdda9b46d74a998a4c6aeef423b21a
validate: fix datatype handling of default values

Properly handle the datatype of default values when the corresponding uci
value is unset. Also consolidate the three default value code branches into
a single one.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
validate/cli.c