mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
gfile: Fix g_file_peek_path() for remote locations
g_file_peek_path() doesn't work for GVfs locations on the first attempt, because the compare-and-swap loop is broken before the return value is set.
This commit is contained in:
parent
b4f6333783
commit
197ea9fe43
@ -568,7 +568,10 @@ file_peek_path_generic (GFile *file)
|
|||||||
if (g_object_replace_qdata ((GObject *) file, _file_path_quark,
|
if (g_object_replace_qdata ((GObject *) file, _file_path_quark,
|
||||||
NULL, (gpointer) new_path,
|
NULL, (gpointer) new_path,
|
||||||
(GDestroyNotify) g_free, NULL))
|
(GDestroyNotify) g_free, NULL))
|
||||||
break;
|
{
|
||||||
|
path = new_path;
|
||||||
|
break;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
g_free (new_path);
|
g_free (new_path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user