...
Code Block | ||
---|---|---|
| ||
char *env = getenv("TEST_ENV"); env[0] = 'a'; |
Compliant
...
Solution
This is a compliant code solution. If it is necessary to modify the value of the string returned by the function getenv()
, then the programmer should make a local copy of that string value, and then modify the local copy of that string.
...