summaryrefslogtreecommitdiff
path: root/devel/argp-standalone/files/patch-argp-help.c
blob: 4074bef9f85b3d93f3606a9b3a4896c45ad60908 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- argp-help.c.orig	2020-04-09 17:39:48 UTC
+++ argp-help.c
@@ -1704,7 +1704,10 @@ Try `%s --help' or `%s --usage' for more information.\
 void __argp_help (const struct argp *argp, FILE *stream,
 		  unsigned flags, char *name)
 {
-  _help (argp, 0, stream, flags, name);
+  struct argp_state state = {
+    .root_argp = argp,
+  };
+  _help (argp, &state, stream, flags, name);
 }
 #ifdef weak_alias
 weak_alias (__argp_help, argp_help)