summaryrefslogtreecommitdiff
path: root/src/import/pull-tar.c
diff options
context:
space:
mode:
authorreverendhomer <mk.43.ecko@gmail.com>2015-08-08 09:54:10 +0300
committerreverendhomer <mk.43.ecko@gmail.com>2015-08-08 09:54:10 +0300
commit60e641a2854c881d61b61c9e51b6a508e885b54a (patch)
treedcb26fd5ce638a40cec263b5df0ef5b1804b2b0b /src/import/pull-tar.c
parent9db81db06b2dc1779c6f94bc62694511c03a78a1 (diff)
Coverity #1299013
event cannot be NULL due to assert
Diffstat (limited to 'src/import/pull-tar.c')
-rw-r--r--src/import/pull-tar.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/import/pull-tar.c b/src/import/pull-tar.c
index a6605d248f..71b8908a58 100644
--- a/src/import/pull-tar.c
+++ b/src/import/pull-tar.c
@@ -127,13 +127,7 @@ int tar_pull_new(
i->grow_machine_directory = path_startswith(i->image_root, "/var/lib/machines");
- if (event)
- i->event = sd_event_ref(event);
- else {
- r = sd_event_default(&i->event);
- if (r < 0)
- return r;
- }
+ i->event = sd_event_ref(event);
r = curl_glue_new(&i->glue, i->event);
if (r < 0)