Do not print garbage, initialize the variable. Bug #3916.

svn path=/trunk/; revision=38318
This commit is contained in:
Dmitry Gorbachev 2008-12-24 07:00:43 +00:00
parent 9b5914abf0
commit cee8fc3735

View file

@ -142,6 +142,8 @@ bool zero_blocks(PEXT2_FILESYS fs, ULONG blk, ULONG num,
if (!buf)
{
DPRINT1("Mke2fs: while allocating zeroizing buffer");
if (ret_blk)
*ret_blk = blk;
return false;
}
memset(buf, 0, fs->blocksize * STRIDE_LENGTH);