diff --git a/src/write.c b/src/write.c index c84ec55..fe6a1e7 100644 --- a/src/write.c +++ b/src/write.c @@ -260,7 +260,7 @@ static void *block_create() { static void block_alloc(io_block_t *ib, block_parts parts) { if ((parts & BLOCK_IN) && !ib->input) ib->input = malloc(gBlockInSize); - if ((parts & BLOCK_IN) && !ib->output) + if ((parts & BLOCK_OUT) && !ib->output) ib->output = malloc(gBlockOutSize); if (!ib->input || !ib->output) die("Can't allocate blocks");