[BACK]Return to swap.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / systat

Diff for /src/usr.bin/systat/swap.c between version 1.19 and 1.20

version 1.19, 2007/02/25 18:21:24 version 1.20, 2007/09/01 19:32:19
Line 98 
Line 98 
   
         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! */
   

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20