]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Environ.get_variable return value should not be owned
authorFlorian Brosch <flo.brosch@gmail.com>
Wed, 27 Aug 2014 00:01:28 +0000 (02:01 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Wed, 27 Aug 2014 00:01:28 +0000 (02:01 +0200)
vapi/glib-2.0.vapi

index f443f0bc4198074de46e5d52cacd3a9ce1ffed42..eb5ce0619bb8f4899377d0d8a61d2a38c84bba08 100644 (file)
@@ -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)]