Commit dc6d16a2 authored by
meson: fix a crash when building
When starting a build stage `on_build_stage_query()` would crash when the `IdeSubprocessLauncher` had a command line of more than 2 items and none of those were ninja or ninja-build. Found the crash when using a jhbuild pipeline, since its argv is `jhbuild run ninja`, the first loop got stuck on comparing `jhbuild` against ninja, ninja-build, and then infinity. The above because `g_strv_contains()` expects NULL terminated arrays, otherwise it will start accessing random memory and likely crash.
Showing with 1 addition and 1 deletion