barebox-state: make sure state->name is valid
It's used later while setting state variables.

Fixes: feb64890a302 ("barebox-state: fall back to /state if there is no alias defined")
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
1 parent feb6489 commit d4c997a3016a18033546766e9562baa1344cb981
@Michael Olbrich Michael Olbrich authored on 14 Sep 2016
Showing 1 changed file
View
src/barebox-state.c