Merge branch 'matthiasc/for-main' into 'main'

Silence a compiler warning

See merge request GNOME/gtk!7354
This commit is contained in:
Matthias Clasen 2024-06-12 03:24:29 +00:00
commit 8c0a4e5a6e

View File

@ -189,7 +189,8 @@ allocate_memfd (gsize size)
if (fd == -1)
g_error ("memfd allocation failed");
ftruncate (fd, size);
if (ftruncate (fd, size) != 0)
g_error ("ftruncate failed");
return fd;
}