if ((status = get_cellconfig(cell, &cellconf, &local_cell)))
return(status);
- if (linkedcell != NULL && cellconf.linkedCell != NULL) {
- *linkedcell = strdup(cellconf.linkedCell);
- if (*linkedcell == NULL) {
- status = ENOMEM;
- goto out;
+ if (linkedcell != NULL) {
+ if (cellconf.linkedCell != NULL) {
+ *linkedcell = strdup(cellconf.linkedCell);
+ if (*linkedcell == NULL) {
+ status = ENOMEM;
+ goto out;
+ }
+ } else {
+ *linkedcell = NULL;
}
}