mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
lib/sysroot-deploy: explicitly handle g_variant_lookup
results
This explicitly ignores the results of two optional variant lookups, in order to pacify a RHT internal static analyzer.
This commit is contained in:
parent
f442f02c15
commit
a1018840f4
@ -2005,7 +2005,7 @@ install_deployment_kernel (OstreeSysroot *sysroot,
|
||||
&variant, NULL))
|
||||
{
|
||||
metadata = g_variant_get_child_value (variant, 0);
|
||||
g_variant_lookup (metadata, OSTREE_COMMIT_META_KEY_VERSION, "s", &deployment_version);
|
||||
(void) g_variant_lookup (metadata, OSTREE_COMMIT_META_KEY_VERSION, "s", &deployment_version);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2232,7 +2232,7 @@ get_deployment_ostree_version (OstreeRepo *repo,
|
||||
if (ostree_repo_load_variant (repo, OSTREE_OBJECT_TYPE_COMMIT, csum, &variant, NULL))
|
||||
{
|
||||
g_autoptr(GVariant) metadata = g_variant_get_child_value (variant, 0);
|
||||
g_variant_lookup (metadata, OSTREE_COMMIT_META_KEY_VERSION, "s", &version);
|
||||
(void) g_variant_lookup (metadata, OSTREE_COMMIT_META_KEY_VERSION, "s", &version);
|
||||
}
|
||||
|
||||
return g_steal_pointer (&version);
|
||||
|
Loading…
Reference in New Issue
Block a user