]> git.ipfire.org Git - thirdparty/systemd.git/commit
strv: Fixup STRV_FOREACH_PAIR macro
authorAdrian Vovk <adrianvovk@gmail.com>
Wed, 4 Sep 2024 03:45:08 +0000 (23:45 -0400)
committerAdrian Vovk <adrianvovk@gmail.com>
Tue, 17 Sep 2024 18:06:26 +0000 (14:06 -0400)
commite671bdc5c34a0d522edb40b3c35a7904bcdea26e
treec216f7738f7911681ea34ed92b20b06e5790caef
parentd80a9042cada88bc2ad2726de104292b2fd7ce57
strv: Fixup STRV_FOREACH_PAIR macro

The macro didn't properly parenthesize a caller-controlled argument.
For example: `STRV_FOREACH_PAIR(a, b, something ?: something_else)`
would expand to `typeof(*something ?: something_else)`, which would
cause compile failures
src/basic/strv.h