summaryrefslogtreecommitdiff
path: root/src/import/export-tar.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-04-05 14:26:26 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-04-05 14:26:26 +0900
commit1cc6c93a9569a9f2664d0d26cd0e50408307c430 (patch)
tree57e115a1beb9b097f731da79c3192015ff35cc94 /src/import/export-tar.c
parent3d282fff063c81893dc4bbd0282193d20dd5357e (diff)
downloadsystemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.tar.gz
tree-wide: use TAKE_PTR() and TAKE_FD() macros
Diffstat (limited to 'src/import/export-tar.c')
-rw-r--r--src/import/export-tar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/import/export-tar.c b/src/import/export-tar.c
index dafe3e1c88..ef444008d9 100644
--- a/src/import/export-tar.c
+++ b/src/import/export-tar.c
@@ -126,8 +126,7 @@ int tar_export_new(
return r;
}
- *ret = e;
- e = NULL;
+ *ret = TAKE_PTR(e);
return 0;
}