提交 4405702a 编写于 作者: S Szabolcs Nagy

remove errno setting from setenv, malloc sets it correctly on oom

上级 1e81fa45
......@@ -26,6 +26,5 @@ int setenv(const char *var, const char *value, int overwrite)
if (!__putenv(s, 1)) return 0;
}
free(s);
errno = ENOMEM;
return -1;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册