globalvar: Fix value of new globalvar when nvvar exists
When a new globalvar with a value is created and the corresponding
nvvar exists, then the globalvar gets the value of the nvvar, not
from the newly assigned value as expected.

nv quux=foo; global quux=bar; echo ${global.quux}

Should give "bar", not "foo". Fix this.

Reported-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent eaf884b commit f8a177478c1b79e369ecc65501d9d15ff573339f
@Sascha Hauer Sascha Hauer authored on 8 May 2017
Showing 1 changed file
View
common/globalvar.c