[vala] glib-2.0: Environ.get_variable return value should not be owned



commit 2bd78a0a80a58dee68cb35ea52a30018a9935bfd
Author: Florian Brosch <flo brosch gmail com>
Date:   Wed Aug 27 02:01:28 2014 +0200

    glib-2.0: Environ.get_variable return value should not be owned

 vapi/glib-2.0.vapi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index f443f0b..eb5ce06 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2692,7 +2692,7 @@ namespace GLib {
                [CCode (cname = "g_get_environ", array_length = false, array_null_terminated = true)]
                public static string[] get ();
                [CCode (cname = "g_environ_getenv")]
-               public static string? get_variable ([CCode (array_length = false, array_null_terminated = 
true)] string[]? envp, string variable);
+               public static unowned string? get_variable ([CCode (array_length = false, 
array_null_terminated = true)] string[]? envp, string variable);
                [CCode (cname = "g_environ_setenv", array_length = false, array_null_terminated = true)]
                public static string[] set_variable ([CCode (array_length = false, array_null_terminated = 
true)] owned string[]? envp, string variable, string value, bool overwrite = true);
                [CCode (cname = "g_environ_unsetenv", array_length = false, array_null_terminated = true)]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]