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> |
---|
|
src/barebox-state.c |
---|