mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-04 15:58:22 +00:00
manifest: Removing unecessary check
alloc_manifest() aborts when manifest allocation fails, so the result will never be NULL
This commit is contained in:
committed by
Matthew Johnson
parent
6c03e883f3
commit
c0229ef92d
@@ -211,10 +211,6 @@ static struct manifest *manifest_from_file(int version, char *component, bool he
|
||||
}
|
||||
|
||||
manifest = alloc_manifest(version, component);
|
||||
if (manifest == NULL) {
|
||||
goto err_close;
|
||||
}
|
||||
|
||||
manifest->filecount = filecount;
|
||||
manifest->contentsize = contentsize;
|
||||
manifest->manifest_version = manifest_enc_version;
|
||||
|
||||
Reference in New Issue
Block a user