aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-environ.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/stdlib/tst-environ.c b/stdlib/tst-environ.c
index 01083f5511..4d17634b52 100644
--- a/stdlib/tst-environ.c
+++ b/stdlib/tst-environ.c
@@ -127,8 +127,9 @@ main (void)
}
/* More fun ahead: we are now removing the variable. This should remove
- both values. */
- putenv (VAR);
+ both values. The cast is ok: this call should never put the string
+ in the environment and it should never modify it. */
+ putenv ((char *) VAR);
/* Getting the value should now fail. */
if (getenv (VAR) != NULL)