Merge branch 'master' into ozonet
[openwrt/.git] / package / libs / argp-standalone / patches / 900-fix-segfault-in_canon_doc_option.patch
1 --- a/argp-help.c
2 +++ b/argp-help.c
3 @@ -777,9 +777,9 @@ hol_entry_cmp (const struct hol_entry *e
4        const char *long2 = hol_entry_first_long (entry2);
5  
6        if (doc1)
7 -       doc1 = canon_doc_option (&long1);
8 +        doc1 = long1 != NULL && canon_doc_option (&long1);
9        if (doc2)
10 -       doc2 = canon_doc_option (&long2);
11 +       doc2 = long2 != NULL && canon_doc_option (&long2);
12  
13        if (doc1 != doc2)
14         /* `documentation' options always follow normal options (or