Author: dgorbachev
Date: Wed Dec 24 01:00:43 2008
New Revision: 38318
URL:
http://svn.reactos.org/svn/reactos?rev=38318&view=rev
Log:
Do not print garbage, initialize the variable. Bug #3916.
Modified:
trunk/reactos/lib/fslib/ext2lib/Mke2fs.c
Modified: trunk/reactos/lib/fslib/ext2lib/Mke2fs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/ext2lib/Mke2fs.c…
==============================================================================
--- trunk/reactos/lib/fslib/ext2lib/Mke2fs.c [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/ext2lib/Mke2fs.c [iso-8859-1] Wed Dec 24 01:00:43 2008
@@ -142,6 +142,8 @@
if (!buf)
{
DPRINT1("Mke2fs: while allocating zeroizing buffer");
+ if (ret_blk)
+ *ret_blk = blk;
return false;
}
memset(buf, 0, fs->blocksize * STRIDE_LENGTH);