1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-06 13:17:44 +03:00

Merge pull request #914 from reverendhomer/patch-2

Coverity #1299013
This commit is contained in:
Daniel Mack 2015-08-08 11:07:05 +02:00
commit b28098571b

View File

@ -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)