summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-10-14 14:32:07 +0200
committerJürg Billeter <j@bitron.ch>2010-10-14 14:35:08 +0200
commitd5eb505c1b5bfe61f5174a7422c98e33c4c5909e (patch)
tree7cfba3236bd0709c4900e7aa72b6e7eca87c9471 /compiler
parentfe07e1d0857b9c428c182f1cba06bf81c3323d67 (diff)
downloadvala-d5eb505c1b5bfe61f5174a7422c98e33c4c5909e.tar.gz
Do not allow passing owned ref argument to unowned reference parameter
Diffstat (limited to 'compiler')
-rw-r--r--compiler/valacompiler.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala
index 46a1cf0f2..37da5242d 100644
--- a/compiler/valacompiler.vala
+++ b/compiler/valacompiler.vala
@@ -485,7 +485,8 @@ class Vala.Compiler {
var opt_context = new OptionContext ("- Vala");
opt_context.set_help_enabled (true);
opt_context.add_main_entries (options, null);
- opt_context.parse (ref compile_args);
+ unowned string[] temp_args = compile_args;
+ opt_context.parse (ref temp_args);
} catch (ShellError e) {
stdout.printf ("%s\n", e.message);
return 1;