Print this page
smatch clean rtld
*** 226,236 ****
/*
* Determine if we've initialized any domains yet.
*/
if (domaincnt == 0) {
! if ((domains = calloc(sizeof (Domain), 2)) == NULL)
return ((char *)msgid);
domains[0].dom_name = MSG_ORIG(MSG_SUNW_OST_SGS);
domains[1].dom_name = MSG_ORIG(MSG_SUNW_OST_OSLIB);
domaincnt = 2;
}
--- 226,236 ----
/*
* Determine if we've initialized any domains yet.
*/
if (domaincnt == 0) {
! if ((domains = calloc(2, sizeof (Domain))) == NULL)
return ((char *)msgid);
domains[0].dom_name = MSG_ORIG(MSG_SUNW_OST_SGS);
domains[1].dom_name = MSG_ORIG(MSG_SUNW_OST_OSLIB);
domaincnt = 2;
}