diff options
author | Florian Brosch <flo.brosch@gmail.com> | 2014-08-27 02:01:28 +0200 |
---|---|---|
committer | Florian Brosch <flo.brosch@gmail.com> | 2014-08-27 02:01:28 +0200 |
commit | 2bd78a0a80a58dee68cb35ea52a30018a9935bfd (patch) | |
tree | 0f88684316bc48aee9add4af8bc633102355c81a | |
parent | 075ab685113afab3be7eccb5c00dfca3d232b0d9 (diff) | |
download | vala-2bd78a0a80a58dee68cb35ea52a30018a9935bfd.tar.gz |
glib-2.0: Environ.get_variable return value should not be owned
-rw-r--r-- | 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 f443f0bc4..eb5ce0619 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)] |