sysroot: Quiet one gcc `-fanalyzer` warning
I don't think this can happen in practice, but add an assertion to verify it.
This commit is contained in:
parent
39a953dfa5
commit
e27fed45fd
|
|
@ -1896,6 +1896,7 @@ ostree_sysroot_simple_write_deployment (OstreeSysroot *sysroot,
|
||||||
/* tracks when we come across the booted deployment */
|
/* tracks when we come across the booted deployment */
|
||||||
gboolean before_booted = TRUE;
|
gboolean before_booted = TRUE;
|
||||||
gboolean before_merge = TRUE;
|
gboolean before_merge = TRUE;
|
||||||
|
g_assert (deployments);
|
||||||
for (guint i = 0; i < deployments->len; i++)
|
for (guint i = 0; i < deployments->len; i++)
|
||||||
{
|
{
|
||||||
OstreeDeployment *deployment = deployments->pdata[i];
|
OstreeDeployment *deployment = deployments->pdata[i];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue