On Tue Nov 7 12:26:25 2023 +0000, Piotr Caban wrote:
If `second == (*p_environ)[1]` it doesn't make sense to compare the buffers.
I don't agree. It shows that the memory hasn't been (re)allocated elsewhere, so that keeping the pointer around is valid across putenv calls. and we need also to ensure string content hasn't been changed.
for clarity I'll add the same test for getenv()which behaves the same way