From 09e565a511f43e48737b0bfb881ccfb32cf0ab82 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sat, 11 Apr 2020 10:55:52 +0200 Subject: [PATCH] vala: Drop mitigation in CodeContext.pkg_config_modversion() when it failed See https://gitlab.gnome.org/GNOME/vala/issues/971 --- vala/valacodecontext.vala | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala index 6ddcd8f5c..b79c06bdd 100644 --- a/vala/valacodecontext.vala +++ b/vala/valacodecontext.vala @@ -880,10 +880,7 @@ public class Vala.CodeContext { try { Process.spawn_command_line_sync (pc, out output, null, out exit_status); if (exit_status != 0) { - output = output[0:-1]; - if (output == "") { - output = null; - } + output = null; } } catch (SpawnError e) { output = null; -- 2.47.2