]> git.ipfire.org Git - thirdparty/systemd.git/commit
extract-word: don't rely on C's downgrade-to-bool feature for chars
authorLennart Poettering <lennart@poettering.net>
Tue, 12 Jan 2021 20:36:54 +0000 (21:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Jan 2021 21:00:35 +0000 (22:00 +0100)
commitfa67d9c0d652dc41574b546f542909e9c8157237
tree6389b73744e6066e2097f8be2fc61b3d8dc98ee7
parent29271da500e7bbd818843036a05229c42cf7b640
extract-word: don't rely on C's downgrade-to-bool feature for chars

The `quote` char variable ectually contains a character, not a pointer
or boolean. hence do an explicit comparison rather than rely on C's
downgrade to bool feature, as per our coding style.
src/basic/extract-word.c