diff options
author | Daniel Mack <github@zonque.org> | 2015-08-08 11:07:05 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-08-08 11:07:05 +0200 |
commit | b28098571b3e4ab332049875db6d52a11a8d3947 (patch) | |
tree | 2b7c5e7a8480eeea713752f995845f906002f50d | |
parent | 0578ded9579b5cd76ea1a46f7a1a41d3d75b5f5b (diff) | |
parent | 60e641a2854c881d61b61c9e51b6a508e885b54a (diff) |
Merge pull request #914 from reverendhomer/patch-2
Coverity #1299013
-rw-r--r-- | src/import/pull-tar.c | 8 |
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) |