(hol_add_cluster): Initialize CL->depth.
authordrepper <drepper>
Sat, 24 May 1997 10:47:16 +0000 (10:47 +0000)
committerdrepper <drepper>
Sat, 24 May 1997 10:47:16 +0000 (10:47 +0000)
argp/argp-help.c

index da6c147..cd54efc 100644 (file)
@@ -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;