gnulib-fix-null-deref.diff 400 B

1234567891011121314
  1. === modified file 'grub-core/gnulib/argp-parse.c'
  2. --- grub-core/gnulib/argp-parse.c 2010-04-02 22:45:01 +0000
  3. +++ grub-core/gnulib/argp-parse.c 2011-04-10 13:25:52 +0000
  4. @@ -935,7 +935,7 @@
  5. void *
  6. __argp_input (const struct argp *argp, const struct argp_state *state)
  7. {
  8. - if (state)
  9. + if (state && state->pstate)
  10. {
  11. struct group *group;
  12. struct parser *parser = state->pstate;