summaryrefslogtreecommitdiffstats
path: root/grub-core/lib/gnulib-patches/fix-null-state-deref.patch
blob: 813ec09c8a1b753f3c196372eef3254e2dd566c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/lib/argp-help.c	2020-10-28 14:32:19.189215988 +0000
+++ b/lib/argp-help.c	2020-10-28 14:38:21.204673940 +0000
@@ -145,7 +145,8 @@
       if (*(int *)((char *)upptr + up->uparams_offs) >= upptr->rmargin)
         {
           __argp_failure (state, 0, 0,
-                          dgettext (state->root_argp->argp_domain,
+                          dgettext (state == NULL ? NULL
+                                    : state->root_argp->argp_domain,
                                     "\
 ARGP_HELP_FMT: %s value is less than or equal to %s"),
                           "rmargin", up->name);