mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-25 09:00:03 +01:00
Merge branch 'gerror-improvements-dir' into 'main'
dir: Avoid some allocations See merge request GNOME/glib!4248
This commit is contained in:
commit
8810cf7a24
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user