Fix warnings
* fs/ntfscomp.c (decomp_get16): initialize c1 and c2
(decomp_block): initialize ch
use grub_memcpy instead of memcpy
+2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
+
+ Fix warnings
+
+ * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
+ (decomp_block): initialize ch
+ use grub_memcpy instead of memcpy
+
2009-06-17 Pavel Roskin <proski@gnu.org>
* include/grub/i386/coreboot/console.h: Don't use the i386-pc
static grub_err_t
decomp_get16 (struct grub_ntfs_comp *cc, grub_uint16_t * res)
{
- unsigned char c1, c2;
+ unsigned char c1 = 0, c2 = 0;
if ((decomp_getch (cc, &c1)) || (decomp_getch (cc, &c2)))
return grub_errno;
}
else
{
- unsigned char ch;
+ unsigned char ch = 0;
if (decomp_getch (cc, &ch))
return grub_errno;
n = cnt;
if ((dest) && (n))
{
- memcpy (dest, &cc->cbuf[cc->cbuf_ofs], n);
+ grub_memcpy (dest, &cc->cbuf[cc->cbuf_ofs], n);
dest += n;
}
cnt -= n;