From 7d601f644ccb08dd289fdda6f003ab7e91379bcd Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 27 May 1997 18:29:35 +0000 Subject: (argp_args_usage): Supply correct argp to filter_doc. --- libshouldbeinlibc/argp-help.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libshouldbeinlibc') 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) { -- cgit v1.2.3