summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/argp-help.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-05-23 23:06:13 +0000
committerMiles Bader <miles@gnu.org>1997-05-23 23:06:13 +0000
commit1e2c963a5df93404f3048823b0f3c610783b7421 (patch)
treeb3f5e22d471c499625249f78ab0342e5e22dc2e2 /libshouldbeinlibc/argp-help.c
parentb4c182d430b29583ea62b2a22773c1be4d8888ae (diff)
(hol_add_cluster):
Initialize CL->depth.
Diffstat (limited to 'libshouldbeinlibc/argp-help.c')
-rw-r--r--libshouldbeinlibc/argp-help.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libshouldbeinlibc/argp-help.c b/libshouldbeinlibc/argp-help.c
index 481b8069..85cc0c47 100644
--- a/libshouldbeinlibc/argp-help.c
+++ b/libshouldbeinlibc/argp-help.c
@@ -458,6 +458,7 @@ hol_add_cluster (struct hol *hol, int group, const char *header, int index,
cl->index = index;
cl->parent = parent;
cl->argp = argp;
+ cl->depth = parent ? parent->depth + 1 : 0;
cl->next = hol->clusters;
hol->clusters = cl;