diff options
author | David Tardon <dtardon@redhat.com> | 2023-04-14 09:59:27 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2023-04-14 10:15:44 +0200 |
commit | 088d71f8edd616a839a6ebfd3ab0c58701678757 (patch) | |
tree | 9940b5f1d136299157eebbdc13be06f6fa92ea6c /src/tmpfiles | |
parent | 13524b29a2833675518b5d5701344196429cb924 (diff) | |
download | systemd-088d71f8edd616a839a6ebfd3ab0c58701678757.tar.gz |
tree-wide: use TAKE_STRUCT
Diffstat (limited to 'src/tmpfiles')
-rw-r--r-- | src/tmpfiles/tmpfiles.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c index 3adafcae83..2eb6e5ea33 100644 --- a/src/tmpfiles/tmpfiles.c +++ b/src/tmpfiles/tmpfiles.c @@ -3637,8 +3637,7 @@ static int parse_line( if (!GREEDY_REALLOC(existing->items, existing->n_items + 1)) return log_oom(); - existing->items[existing->n_items++] = i; - i = (struct Item) {}; + existing->items[existing->n_items++] = TAKE_STRUCT(i); /* Sort item array, to enforce stable ordering of application */ typesafe_qsort(existing->items, existing->n_items, item_compare); |