diff options
author | Xishi Qiu <qiuxishi@huawei.com> | 2014-11-04 19:26:28 +0800 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2015-01-23 20:59:27 +0100 |
commit | 217f0a86c07beae6a27d422b5f46ee853f3a447a (patch) | |
tree | dd320393d0004787a6c530493f1af43441c1bdff /libc/string/i386/strrchr.c | |
parent | a952a1dd2bba69da4c52a111600f4279aadc3602 (diff) |
add argument check in setenv()
setenv() in glibc/eglibc will check the argument, like this,
...
if (name == NULL || *name == '\0' || strchr (name, '=') != NULL)
{
__set_errno (EINVAL);
return -1;
}
...
So add argument check in uclibc's setenv() too.
Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/string/i386/strrchr.c')
0 files changed, 0 insertions, 0 deletions