Print this page
6139 help gcc figure out variable initialization
*** 823,841 ****
break;
}
ptr = ptr->portal_next;
i++;
}
- }
! if ((ret == 0) && portalArray) {
ret = nvlist_add_string_array(*nvl, "portalList",
portalArray, i);
}
- if (portalArray) {
while (--i >= 0) {
if (portalArray[i]) {
iscsit_free(portalArray[i],
strlen(portalArray[i] + 1));
}
--- 823,839 ----
break;
}
ptr = ptr->portal_next;
i++;
}
! if (ret == 0) {
ret = nvlist_add_string_array(*nvl, "portalList",
portalArray, i);
}
while (--i >= 0) {
if (portalArray[i]) {
iscsit_free(portalArray[i],
strlen(portalArray[i] + 1));
}