On 03.02.2012 19:26, Grégoire Sutre wrote:
The compiler complains about `totsize' being possibly uninitialized
in grub-core/disk/diskfilter.c, function grub_diskfilter_make_raid().
I get this error with gcc 4.5.3 on NetBSD, and also with gcc 4.6.2 on
Debian GNU/Linux.
I'm not familiar with that code. The attached patch fixes this by
returning NULL when the argument `level' has an unexpected value.
I've looked at other code and seen that return NULL will result in the
skipping of those devices altogether, exactly what we want. So I think
it's a reasonable behaviour for this function. So go ahead