![]() ![]() | ![]() |
version 1.19, 2007/02/25 18:21:24 | version 1.20, 2007/09/01 19:32:19 | ||
---|---|---|---|
|
|
||
if (swap_devices) | if (swap_devices) | ||
(void)free(swap_devices); | (void)free(swap_devices); | ||
swap_devices = (struct swapent *)malloc(nswap * sizeof(*swap_devices)); | swap_devices = (struct swapent *)calloc(nswap, sizeof(*swap_devices)); | ||
if (swap_devices == NULL) | if (swap_devices == NULL) | ||
/* XXX */ ; /* XXX systat doesn't do errors! */ | /* XXX */ ; /* XXX systat doesn't do errors! */ | ||