ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/disk_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/disk_stats.c (file contents):
Revision 1.24 by tdb, Tue Oct 7 19:58:37 2003 UTC vs.
Revision 1.25 by tdb, Tue Oct 7 20:32:50 2003 UTC

# Line 488 | Line 488 | diskio_stat_t *get_diskio_stats(int *entries){
488   #ifdef FREEBSD
489          if (!stats_init) {
490                  stats.dinfo=malloc(sizeof(struct devinfo));
491 +                bzero(stats.dinfo, sizeof(struct devinfo));
492                  if(stats.dinfo==NULL) return NULL;
493                  stats_init = 1;
494          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines