Author: weiden
Date: Thu Aug 28 18:47:23 2008
New Revision: 35735
URL:
http://svn.reactos.org/svn/reactos?rev=35735&view=rev
Log:
Fix warning that variable might be used uninitialized
Modified:
trunk/reactos/lib/fslib/vfatlib/check/fat.c
Modified: trunk/reactos/lib/fslib/vfatlib/check/fat.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/fslib/vfatlib/check/fa…
==============================================================================
--- trunk/reactos/lib/fslib/vfatlib/check/fat.c [iso-8859-1] (original)
+++ trunk/reactos/lib/fslib/vfatlib/check/fat.c [iso-8859-1] Thu Aug 28 18:47:23 2008
@@ -66,6 +66,8 @@
second = NULL;
if (second && memcmp(first,second,eff_size) != 0) {
FAT_ENTRY first_media, second_media;
+ memset (&first_media, 0, sizeof (first_media));
+ memset (&second_media, 0, sizeof (second_media));
get_fat(&first_media,first,0,fs);
get_fat(&second_media,second,0,fs);
first_ok = (first_media.value & FAT_EXTD(fs)) == FAT_EXTD(fs);