Merge branch 'w32-tests-spawn' into 'main'

Various spawn-related test fixes on win32

See merge request GNOME/glib!2485
This commit is contained in:
Philip Withnall
2022-03-04 16:16:39 +00:00
8 changed files with 93 additions and 20 deletions

View File

@@ -780,7 +780,7 @@ g_content_type_guess (const gchar *filename,
if (filename)
{
i = strlen (filename);
if (filename[i - 1] == '/')
if (i > 0 && filename[i - 1] == '/')
{
name_mimetypes[0] = "inode/directory";
name_mimetypes[1] = NULL;