From: Dr. Michael Lauer Date: Wed, 28 Feb 2018 12:14:53 +0000 (+0100) Subject: compiler: fix critical when vala is called without run args X-Git-Tag: 0.40.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9996877480287308d8273c8469c87fa48b3a3ea;p=thirdparty%2Fvala.git compiler: fix critical when vala is called without run args https://bugzilla.gnome.org/show_bug.cgi?id=793657 --- diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 522b41ac5..63a567e70 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -570,9 +570,11 @@ class Vala.Compiler { } string[] target_args = { output }; - string[] target_run_args = run_args.split (" "); - foreach (string arg in target_run_args) { - target_args += arg; + if (run_args != null) { + string[] target_run_args = run_args.split (" "); + foreach (string arg in target_run_args) { + target_args += arg; + } } try {