Rev 4264 | Rev 4305 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4264 | Rev 4268 | ||
|---|---|---|---|
| Line 323... | Line 323... | ||
| 323 | namep->name = malloc(size + 1); |
323 | namep->name = malloc(size + 1); |
| 324 | if (!namep->name) { |
324 | if (!namep->name) { |
| 325 | free(namep); |
325 | free(namep); |
| 326 | return ENOMEM; |
326 | return ENOMEM; |
| 327 | } |
327 | } |
| 328 | strcpy(namep->name, nm); |
328 | str_cpy(namep->name, size + 1, nm); |
| 329 | namep->parent = parentp; |
329 | namep->parent = parentp; |
| 330 | 330 | ||
| 331 | childp->lnkcnt++; |
331 | childp->lnkcnt++; |
| 332 | 332 | ||
| 333 | unsigned long key = (unsigned long) parentp; |
333 | unsigned long key = (unsigned long) parentp; |