[gnome-builder] meson: fix critical in ninja lookup
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] meson: fix critical in ninja lookup
- Date: Mon, 1 Mar 2021 00:15:43 +0000 (UTC)
commit 0f771afe0117073a3bf3d852df8bb1b1116a1576
Author: Christian Hergert <chergert redhat com>
Date: Sun Feb 28 16:15:38 2021 -0800
meson: fix critical in ninja lookup
src/plugins/meson/gbp-meson-pipeline-addin.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/meson/gbp-meson-pipeline-addin.c b/src/plugins/meson/gbp-meson-pipeline-addin.c
index 8e9aae305..d2786ab2a 100644
--- a/src/plugins/meson/gbp-meson-pipeline-addin.c
+++ b/src/plugins/meson/gbp-meson-pipeline-addin.c
@@ -147,7 +147,8 @@ gbp_meson_pipeline_addin_load (IdePipelineAddin *addin,
g_assert (IDE_IS_RUNTIME (runtime));
g_assert (srcdir != NULL);
- for (guint i = 0; i < G_N_ELEMENTS (ninja_names); i++)
+ /* Requires NULL check so we can use g_strv_contains() elsewhere */
+ for (guint i = 0; ninja_names[i]; i++)
{
if (ide_runtime_contains_program_in_path (runtime, ninja_names[i], NULL))
{
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]