diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-10-06 17:01:19 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-09 11:51:54 +0100 |
commit | 90fee398bcaa419467367c81b8cdb951d1b89e65 (patch) | |
tree | f1aad241e8686c1c0383b28ae9539e16f91e87f9 /common/env.c | |
parent | ad011ff8771896d500ce1639810e988a7ff5f7a3 (diff) | |
download | barebox-90fee398bcaa419467367c81b8cdb951d1b89e65.tar.gz |
export: do not fail on already exported variable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/env.c')
-rw-r--r-- | common/env.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/env.c b/common/env.c index defb26b3b7..05ed71418e 100644 --- a/common/env.c +++ b/common/env.c @@ -247,8 +247,7 @@ int export(const char *varname) if (val) { setenv_raw(context->global, varname, val); setenv_raw(context->local, varname, NULL); - return 0; } - return -1; + return 0; } EXPORT_SYMBOL(export); |