All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Grégoire Sutre" <gregoire.sutre@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Build break (uninitialized variable)
Date: Sun, 05 Feb 2012 01:31:07 +0100	[thread overview]
Message-ID: <4F2DCDCB.2030305@gmail.com> (raw)
In-Reply-To: <4F2DB1D5.8070200@gmail.com>

On 02/04/2012 11:31 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> 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

I've committed the patch.  Thanks for looking into this.

Grégoire


      reply	other threads:[~2012-02-05  0:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-03 18:26 Build break (uninitialized variable) Grégoire Sutre
2012-02-04 22:31 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-05  0:31   ` Grégoire Sutre [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F2DCDCB.2030305@gmail.com \
    --to=gregoire.sutre@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.