summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-05-27 18:29:35 +0000
committerMiles Bader <miles@gnu.org>1997-05-27 18:29:35 +0000
commit7d601f644ccb08dd289fdda6f003ab7e91379bcd (patch)
tree1449a1671b0040c844a4e758a2ab79d0c363b161
parentecec6fe4d165a0f1ac41eede7bb04f42c1f7a111 (diff)
(argp_args_usage):
Supply correct argp to filter_doc.
-rw-r--r--libshouldbeinlibc/argp-help.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libshouldbeinlibc/argp-help.c b/libshouldbeinlibc/argp-help.c
index caf85850..5a893350 100644
--- a/libshouldbeinlibc/argp-help.c
+++ b/libshouldbeinlibc/argp-help.c
@@ -1315,8 +1315,7 @@ argp_args_usage (const struct argp *argp, const struct argp_state *state,
int multiple = 0;
const struct argp_child *child = argp->children;
const char *tdoc = gettext (argp->args_doc), *nl = 0;
- const char *fdoc = filter_doc (tdoc, ARGP_KEY_HELP_ARGS_DOC,
- state ? state->root_argp : 0, state);
+ const char *fdoc = filter_doc (tdoc, ARGP_KEY_HELP_ARGS_DOC, argp, state);
if (fdoc)
{