]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
compiler: fix critical when vala is called without run args a9996877480287308d8273c8469c87fa48b3a3ea
authorDr. Michael Lauer <mickey@vanille-media.de>
Wed, 28 Feb 2018 12:14:53 +0000 (13:14 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 28 Feb 2018 18:31:13 +0000 (19:31 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=793657

compiler/valacompiler.vala

index 522b41ac5e61634e9562927e65768c2f0b8577f6..63a567e70ade5cb4e0f9c21b87970f6fbf29c43b 100644 (file)
@@ -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 {