Re: [PATCH RFC] common: env: handle var="" not as var=NULL

2016-06-14 Thread Sascha Hauer
On Mon, Jun 13, 2016 at 12:51:52PM +0200, Alexander Aring wrote: > This patch changes the behaviour which I think is used everywhere in > barebox code. Currently var="" and var=NULL will end in the same > behaviour. > > New behaviour is: > > setenv(name, "") -> sets name to "" > \->

[PATCH RFC] common: env: handle var="" not as var=NULL

2016-06-13 Thread Alexander Aring
This patch changes the behaviour which I think is used everywhere in barebox code. Currently var="" and var=NULL will end in the same behaviour. New behaviour is: setenv(name, "")-> sets name to "" \-> getenv(name)-> "" setenv(name, NULL) -> deletes env \-> getenv(name)