* grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate

is NULL.
This commit is contained in:
Colin Watson 2011-04-10 15:25:52 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent 8b8a81fa6a
commit 088cdb65eb
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-04-10 Colin Watson <cjwatson@ubuntu.com>
* grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
is NULL.
2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
Dynamically count the number of lines for the lower banner.

View File

@ -935,7 +935,7 @@ weak_alias (__argp_parse, argp_parse)
void *
__argp_input (const struct argp *argp, const struct argp_state *state)
{
if (state)
if (state && state->pstate)
{
struct group *group;
struct parser *parser = state->pstate;