Merge branch 'fix-uri-crash-3' into 'gtk-3-24'

Fix a possible crash in gtk_show_uri

See merge request GNOME/gtk!3458
This commit is contained in:
Matthias Clasen 2021-04-19 23:25:15 +00:00
commit c714739759

View File

@ -45,6 +45,9 @@ get_display_name (GFile *file,
if (name == NULL)
{
name = g_file_get_basename (file);
if (name == NULL)
name = g_file_get_uri (file);
if (!g_utf8_validate (name, -1, NULL))
{
tmp = name;