From cbb86267fda18ba3e409e16cf9c460cbbed1846c Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Mon, 24 Jan 2005 10:14:36 +0000 Subject: [PATCH] Avoid using non-constant initializers for struct pentry_state. --- lib/argp-help.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/argp-help.c b/lib/argp-help.c index 603576496..c506b57b0 100644 --- a/lib/argp-help.c +++ b/lib/argp-help.c @@ -1055,7 +1055,13 @@ hol_entry_help (struct hol_entry *entry, const struct argp_state *state, int old_wm = __argp_fmtstream_wmargin (stream); /* PEST is a state block holding some of our variables that we'd like to share with helper functions. */ - struct pentry_state pest = { entry, stream, hhstate, 1, state }; + struct pentry_state pest; + + pest.entry = entry; + pest.stream = stream; + pest.hhstate = hhstate; + pest.first = 1; + pest.state = state; if (! odoc (real)) for (opt = real, num = entry->num; num > 0; opt++, num--) -- 2.11.0