mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Merge branch 'matthiasc/for-main' into 'main'
Silence a compiler warning See merge request GNOME/gtk!7354
This commit is contained in:
commit
8c0a4e5a6e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user