]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptsetup: small if check improvement (#7747)
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Dec 2017 11:43:31 +0000 (12:43 +0100)
committerGitHub <noreply@github.com>
Wed, 27 Dec 2017 11:43:31 +0000 (12:43 +0100)
commitd31eb24fc2dfbafa346c8cf3ab113f790cef4f0f
tree049da2cbec1e7785b9979b28cb075571b3a8f02a
parent559fdfa3e5d842e2b8f5c8cc4eb42ad5c21263c7
cryptsetup: small if check improvement (#7747)

It's a bit weird to test these strings after the fact instead of before.
Let's make sure that we don't even attempt the string escaping if the
strings are NULL.

Follow-up for #7688
src/cryptsetup/cryptsetup-generator.c