9
0
Fork 0

export: do not fail on already exported variable

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2011-10-06 17:01:19 +02:00
parent ad011ff877
commit 90fee398bc
1 changed files with 1 additions and 2 deletions

View File

@ -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);