barebox-state: fix usage of multiple state instances
Let's assume there are two state instances named "blue" (with variable "x") and
"yellow" (with variable "y") then

  $ barebox-state --name blue --get x
  $ barebox-state --name yellow --get y

would both work, whereas only exactly one of the alternative calls

  $ barebox-state --get blue.x
  $ barebox-state --get yellow.y

would succeed. This commit fixes that bug.

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
1 parent 0cd8a9b commit 99918b8f3ad2bec78969434365a3be6ba5f44cdd
@Ulrich Ölmann Ulrich Ölmann authored on 3 Feb 2019
Roland Hieber committed on 7 Feb 2019
Showing 1 changed file
View
src/barebox-state.c