summaryrefslogtreecommitdiffstats
path: root/src/import/import-tar.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-04-05 07:26:26 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-04-05 07:26:26 +0200
commit1cc6c93a9569a9f2664d0d26cd0e50408307c430 (patch)
tree57e115a1beb9b097f731da79c3192015ff35cc94 /src/import/import-tar.c
parentnetwork: fix typo in log message (diff)
downloadsystemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.tar.xz
systemd-1cc6c93a9569a9f2664d0d26cd0e50408307c430.zip
tree-wide: use TAKE_PTR() and TAKE_FD() macros
Diffstat (limited to 'src/import/import-tar.c')
-rw-r--r--src/import/import-tar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/import/import-tar.c b/src/import/import-tar.c
index 09c7654adc..1c03308628 100644
--- a/src/import/import-tar.c
+++ b/src/import/import-tar.c
@@ -148,8 +148,7 @@ int tar_import_new(
return r;
}
- *ret = i;
- i = NULL;
+ *ret = TAKE_PTR(i);
return 0;
}