]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic: add new helper call empty_or_dash_to_null()
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Apr 2019 10:11:11 +0000 (12:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Apr 2019 10:11:11 +0000 (12:11 +0200)
commitdc90e0faae63a26a3e7aa4d285a50b1efb1ae39a
tree115168bfde588f513d92da56cbf0abc9ecf26d5a
parente7b88b7bc1b33af3966349ca59ecd3d25c3e8504
basic: add new helper call empty_or_dash_to_null()

We have a function like this at two places already. Let's unify it in
one generic location and let's port a number of users over.
src/basic/string-util.h
src/import/export.c
src/import/import-fs.c
src/import/import.c
src/import/pull.c
src/locale/keymap-util.c
src/machine/machinectl.c