event cannot be NULL due to assert
This commit is contained in:
reverendhomer 2015-08-08 09:54:10 +03:00
parent 9db81db06b
commit 60e641a285
1 changed files with 1 additions and 7 deletions

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)