diff options
author | Jeff King <peff@peff.net> | 2019-01-11 17:15:00 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-11 18:48:58 -0800 |
commit | 8aac69038fa6c5f957559ca7e08a5e2e8f74d0fa (patch) | |
tree | 0e6939eaca33b1f4075107f4374e082a1e69d657 /t/t6020-merge-df.sh | |
parent | Git 2.19.2 (diff) | |
download | tgif-8aac69038fa6c5f957559ca7e08a5e2e8f74d0fa.tar.xz |
get_super_prefix(): copy getenv() result
The return value of getenv() is not guaranteed to remain valid across
multiple calls (nor across calls to setenv()). Since this function
caches the result for the length of the program, we must make a copy to
ensure that it is still valid when we need it.
Reported-by: Yngve N. Pettersen <yngve@vivaldi.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6020-merge-df.sh')
0 files changed, 0 insertions, 0 deletions