Merge branch 'gerror-improvements-dir' into 'main'

dir: Avoid some allocations

See merge request GNOME/glib!4248
This commit is contained in:
Michael Catanzaro 2024-09-06 15:59:17 +00:00
commit 8810cf7a24

View File

@ -156,7 +156,7 @@ g_dir_open (const gchar *path,
dir = g_dir_open_with_errno (path, flags);
if (dir == NULL)
if (dir == NULL && error != NULL)
{
gchar *utf8_path;