mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Don't write out zero-byte sections in builder
This and the previous issue caught by Christian Persch in bug #616156
This commit is contained in:
parent
6713b3dbaa
commit
2d9811ebda
@ -236,6 +236,9 @@ file_builder_allocate (FileBuilder *fb,
|
||||
{
|
||||
FileChunk *chunk;
|
||||
|
||||
if (size == 0)
|
||||
return NULL;
|
||||
|
||||
fb->offset += (-fb->offset) & (alignment - 1);
|
||||
chunk = g_slice_new (FileChunk);
|
||||
chunk->offset = fb->offset;
|
||||
|
Loading…
Reference in New Issue
Block a user