- for(np = labels[i]; np != NULL; np = np->next) {
- assert(np->label != NULL);
- ar[asize] = malloc_chk(sizeof(LABELARRAY), "ar[]");
- if(np->prog == NULL) {
- ar[asize]->prog = NULL;
- } else {
- ar[asize]->prog = strdup_chk(np->prog, "ar[].prog");
- }
- ar[asize]->label = strdup_chk(np->label, "ar[].label");
- ar[asize++]->adr = np->adr;
+ for(p = labels[i]; p != NULL; p = p->next) {
+ assert(p->label != NULL);
+ l[s] = malloc_chk(sizeof(LABELARRAY), "lables");
+ l[s]->prog = strdup_chk(p->prog, "labels.prog");
+ l[s]->label = strdup_chk(p->label, "labels.label");
+ l[s++]->adr = p->adr;