mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-18 13:52:53 -04:00
utils: Avoid passing a potentially NULL pointer to strlen(3)
This commit is contained in:
committed by
Alexander Larsson
parent
dabc01c3f3
commit
50835cccfd
@@ -6750,7 +6750,8 @@ flatpak_pull_from_bundle (OstreeRepo *repo,
|
||||
if (metadata == NULL)
|
||||
return FALSE;
|
||||
|
||||
metadata_size = strlen (metadata_contents);
|
||||
if (metadata_contents != NULL)
|
||||
metadata_size = strlen (metadata_contents);
|
||||
|
||||
if (!ostree_repo_get_remote_option (repo, remote, "collection-id", NULL,
|
||||
&remote_collection_id, NULL))
|
||||
|
||||
Reference in New Issue
Block a user