grub/grub-core/lib/gnulib-patches/fix-null-deref.patch

14 lines
396 B
Diff
Raw Normal View History

diff --git a/lib/argp-parse.c b/lib/argp-parse.c
index 6dec57310..900adad54 100644
--- a/lib/argp-parse.c
+++ b/lib/argp-parse.c
@@ -940,7 +940,7 @@ weak_alias (__argp_parse, argp_parse)
2013-04-11 19:12:46 +00:00
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;