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.32 by ats, Sun Oct 19 11:15:30 2003 UTC vs.
Revision 1.33 by ats, Sun Oct 19 11:23:21 2003 UTC

# Line 351 | Line 351 | diskio_stat_t *get_diskio_stats(int *entries){
351   #ifdef FREEBSD
352          if (!stats_init) {
353                  stats.dinfo=malloc(sizeof(struct devinfo));
354                bzero(stats.dinfo, sizeof(struct devinfo));
354                  if(stats.dinfo==NULL) return NULL;
355 +                bzero(stats.dinfo, sizeof(struct devinfo));
356                  stats_init = 1;
357          }
358   #ifdef FREEBSD5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines