b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 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 |