barebox-state: Check of_property_count_strings return value
When a enum32 state variable node does not have a "names" property bail
out gracefully instead of crashing.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b1a5292 commit 755a69659c4283c5d572bcdacfa59cd4b55eddb6
@Sascha Hauer Sascha Hauer authored on 10 Sep 2015
Showing 1 changed file
View
src/barebox-state.c