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/locale | |
parent | 13524b29a2833675518b5d5701344196429cb924 (diff) | |
download | systemd-088d71f8edd616a839a6ebfd3ab0c58701678757.tar.gz |
tree-wide: use TAKE_STRUCT
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/localed-util.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/locale/localed-util.c b/src/locale/localed-util.c index 5247d139eb..17d96aea1d 100644 --- a/src/locale/localed-util.c +++ b/src/locale/localed-util.c @@ -71,8 +71,7 @@ void x11_context_replace(X11Context *dest, X11Context *src) { assert(src); x11_context_clear(dest); - *dest = *src; - *src = (X11Context) {}; + *dest = TAKE_STRUCT(*src); } bool x11_context_isempty(const X11Context *xc) { @@ -196,8 +195,7 @@ void vc_context_replace(VCContext *dest, VCContext *src) { assert(src); vc_context_clear(dest); - *dest = *src; - *src = (VCContext) {}; + *dest = TAKE_STRUCT(*src); } bool vc_context_isempty(const VCContext *vc) { |