tree-wide: [scan-build]: Add some asserts that pointers are non-NULL
More "scan-build doesn't understand GError and our out-param conventions" AKA "these errors would be impossible with Rust's sum type Result<> approach".
This commit is contained in:
1 parent
4a38b11159
commit
a8dc90b02f
4 files changed
+7
-1
No files matched your search
@@ -313,6 +313,7 @@ cleanup_old_deployments (OstreeSysroot *self,
|
||||
if (!list_all_deployment_directories (self, &all_deployment_dirs,
|
||||
cancellable, error))
|
||||
return FALSE;
|
||||
g_assert (all_deployment_dirs); /* Pacify static analysis */
|
||||
for (guint i = 0; i < all_deployment_dirs->len; i++)
|
||||
{
|
||||
OstreeDeployment *deployment = all_deployment_dirs->pdata[i];
|
||||
|
||||
Reference in new issue
Block a user