diff options
-rw-r--r-- | compiler/valacompiler.vala | 8 |
1 files changed, 5 insertions, 3 deletions
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 { |