~vcs-imports/grub/grub2-bzr

« back to all changes in this revision

Viewing changes to grub-core/gnulib-fix-null-deref.diff

  • Committer: Vladimir 'phcoder' Serbinenko
  • Date: 2013-04-11 19:12:46 UTC
  • Revision ID: phcoder@gmail.com-20130411191246-fz1xdy47z3vv2kt8
        Import new gnulib.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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;
 
13