mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-13 22:07:15 +01:00
Annotate g_getenv()
and g_environ_getenv()
return value as nullable
This commit is contained in:
parent
674966bb6e
commit
07151049aa
@ -88,7 +88,7 @@ g_environ_find (gchar **envp,
|
|||||||
* Returns the value of the environment variable @variable in the
|
* Returns the value of the environment variable @variable in the
|
||||||
* provided list @envp.
|
* provided list @envp.
|
||||||
*
|
*
|
||||||
* Returns: (type filename): the value of the environment variable, or %NULL if
|
* Returns: (type filename) (nullable): the value of the environment variable, or %NULL if
|
||||||
* the environment variable is not set in @envp. The returned
|
* the environment variable is not set in @envp. The returned
|
||||||
* string is owned by @envp, and will be freed if @variable is
|
* string is owned by @envp, and will be freed if @variable is
|
||||||
* set or unset again.
|
* set or unset again.
|
||||||
@ -242,7 +242,7 @@ g_environ_unsetenv (gchar **envp,
|
|||||||
* On Windows, in case the environment variable's value contains
|
* On Windows, in case the environment variable's value contains
|
||||||
* references to other environment variables, they are expanded.
|
* references to other environment variables, they are expanded.
|
||||||
*
|
*
|
||||||
* Returns: (type filename): the value of the environment variable, or %NULL if
|
* Returns: (type filename) (nullable): the value of the environment variable, or %NULL if
|
||||||
* the environment variable is not found. The returned string
|
* the environment variable is not found. The returned string
|
||||||
* may be overwritten by the next call to g_getenv(), g_setenv()
|
* may be overwritten by the next call to g_getenv(), g_setenv()
|
||||||
* or g_unsetenv().
|
* or g_unsetenv().
|
||||||
|
Loading…
x
Reference in New Issue
Block a user