nvvar: when setting a nvvar to NULL just free the content
When a nvvar is about to be removed then it is set to NULL
by barebox. This means for the variable to free it's memory.
In this case also do not pass the value to the corresponding
globalvar, since that would set the globalvar to NULL aswell,
but we want to keep its current value.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3edbc17 commit fa4c41ba60af6e8260307fadcd5fb68f8bdb7360
@Sascha Hauer Sascha Hauer authored on 23 Nov 2017
Showing 1 changed file
View
common/globalvar.c