This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit a2eb297fecd3a7ea44fd8d38124271ace94355dc Author: Marco Casaroli <[email protected]> AuthorDate: Fri Oct 30 11:59:09 2026 +0100 Documentation: Say that putenv() does not copy the string. putenv() puts the string itself into the environment, as POSIX requires. Say so, and say that a later change to the string changes the environment. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- Documentation/reference/user/09_env_vars.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/reference/user/09_env_vars.rst b/Documentation/reference/user/09_env_vars.rst index 3cfd381a4cb..2dc88887e47 100644 --- a/Documentation/reference/user/09_env_vars.rst +++ b/Documentation/reference/user/09_env_vars.rst @@ -96,6 +96,11 @@ Functions to the environment. If name does exist, then the value of name in the environment is changed to value. + The string itself becomes part of the environment, as POSIX requires. + NuttX does not copy it, so a later change to the string changes the + environment. Do not free the string or use its memory for other data + while it is in the environment. + :param string: ``name=value`` string describing the environment setting to add/modify.
