]> git.ipfire.org Git - thirdparty/systemd.git/commit
env-util: rework strv_env_merge()
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Oct 2018 18:10:09 +0000 (20:10 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Oct 2018 18:51:14 +0000 (20:51 +0200)
commit2d3ff1decbd382d93b02215b42f2183733dfbca6
treedea0c7f7cc11ccb733e80fc444faf3b94809bb71
parent2a13184a430265b0cdd228af04577edfe580a69f
env-util: rework strv_env_merge()

Let's clean up the failure codepaths, by using _cleanup_.

This relies on the new behaviour of env_append() introduced in the
previous commit that guarantess the list always remains properly NULL
terminated
src/basic/env-util.c