Merge branch 'bookmark-fix' into 'master'

gtkplacessidebar.c: add bookmark null checking

See merge request GNOME/gtk!3479
This commit is contained in:
Matthias Clasen 2021-04-28 16:09:32 +00:00
commit 604d171d56

View File

@ -795,6 +795,9 @@ on_bookmark_query_info_complete (GObject *source,
{
/* Don't add non-UTF-8 bookmarks */
bookmark_name = g_file_get_basename (root);
if (bookmark_name == NULL)
goto out;
if (!g_utf8_validate (bookmark_name, -1, NULL))
{
g_free (bookmark_name);