From 078271934ff8b866d21a7eb728e3469af6023b16 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 18 May 2020 13:32:27 +0100 Subject: [PATCH] runtime: Move an assertion closer to the place where it matters Signed-off-by: Simon McVittie <smcv@collabora.com> --- src/runtime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime.c b/src/runtime.c index 93ec9486a..0041e5613 100644 --- a/src/runtime.c +++ b/src/runtime.c @@ -1168,12 +1168,12 @@ pv_runtime_use_host_graphics_stack (PvRuntime *self, g_ptr_array_add (vulkan_icd_details, icd_details_new (icd)); } - g_assert (multiarch_tuples[G_N_ELEMENTS (multiarch_tuples) - 1] == NULL); - /* We set this FALSE later if we decide not to use the host libc for * some architecture. */ self->all_libc_from_host = TRUE; + g_assert (multiarch_tuples[G_N_ELEMENTS (multiarch_tuples) - 1] == NULL); + for (i = 0; i < G_N_ELEMENTS (multiarch_tuples) - 1; i++) { g_autofree gchar *tool = g_strdup_printf ("%s-capsule-capture-libs", -- GitLab