Silence a compiler warning

This commit is contained in:
Matthias Clasen
2024-06-11 17:47:48 -04:00
parent 420bd5bc16
commit 7195514fb5

View File

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