mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 19:22:11 +01:00
uri: add a comment about temporary GUri construction
As pointed out in the discussion of: https://gitlab.gnome.org/GNOME/glib/-/issues/2169 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
19c0db3185
commit
d625a29b28
@ -1181,6 +1181,8 @@ g_uri_parse_relative (GUri *base_uri,
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
||||
g_return_val_if_fail (base_uri == NULL || base_uri->scheme != NULL, NULL);
|
||||
|
||||
/* Use GUri struct to construct the return value: there is no guarantee it is
|
||||
* actually correct within the function body. */
|
||||
uri = g_atomic_rc_box_new0 (GUri);
|
||||
uri->flags = flags;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user