summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorDr. Michael Lauer <mickey@vanille-media.de>2018-02-28 13:14:53 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2018-02-28 19:31:13 +0100
commita9996877480287308d8273c8469c87fa48b3a3ea (patch)
treea16f3b886388887ee2a0d3f40b015f4eeff0cecd /compiler
parent4f55fab739e08384895b9357d2dd1633f467346a (diff)
downloadvala-a9996877480287308d8273c8469c87fa48b3a3ea.tar.gz
compiler: fix critical when vala is called without run args
https://bugzilla.gnome.org/show_bug.cgi?id=793657
Diffstat (limited to 'compiler')
-rw-r--r--compiler/valacompiler.vala8
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 {