]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
iovec-util: enclose macro arg in ()
authorMike Yuan <me@yhndnzj.com>
Thu, 26 Mar 2026 16:58:44 +0000 (17:58 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 26 Jul 2026 10:58:08 +0000 (19:58 +0900)
Follow-up for 56f3ae9292742fff1cac6dbe4883a1715e56e874

src/basic/iovec-util.h

index d054e404d14d7721197a8b2485053c9d0b977136..ab6178d653a884d0848ec928bb8c2911c4ed805c 100644 (file)
@@ -29,7 +29,7 @@ struct iovec* iovec_make_string(struct iovec *iovec, const char *s);
 
 #define IOVEC_MAKE_BYTE(c)                                      \
         (const struct iovec) {                                  \
-                .iov_base = (char*) ((const char[]) { c }),     \
+                .iov_base = (char*) ((const char[]) { (c) }),   \
                 .iov_len = 1,                                   \
         }