diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-02-19 00:08:39 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-02-20 12:38:06 +0900 |
commit | e99ca1474145f7fad38bb0255d344f4ad7717ef5 (patch) | |
tree | 4c8662608ea96da642bc293d4838deeac860ed18 /tools | |
parent | 5cf84d2545fc314d970e0eded0258d1650bed3cd (diff) | |
download | systemd-e99ca1474145f7fad38bb0255d344f4ad7717ef5.tar.gz |
env-util: replace unsetenv_erase() by new getenv_steal_erase() helper
The new helper combines a bunch of steps every invocation of
unsetenv_erase() did so far: getenv() + strdup() + unsetenv_erase().
Let's unify this into one helper that is harder to use incorrectly. It's
in inspired by TAKE_PTR() in a way: get the env var out and invalidate
where it was before.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions