summaryrefslogtreecommitdiffstats
path: root/common/env.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-10-06 17:01:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-11-09 11:51:54 +0100
commit90fee398bcaa419467367c81b8cdb951d1b89e65 (patch)
treef1aad241e8686c1c0383b28ae9539e16f91e87f9 /common/env.c
parentad011ff8771896d500ce1639810e988a7ff5f7a3 (diff)
downloadbarebox-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/env.c b/common/env.c
index defb26b..05ed714 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);