satisfy valgrind

This commit is contained in:
rsc 2004-06-09 14:13:49 +00:00
parent a3ad5254ee
commit ceecb31310

View file

@ -53,6 +53,9 @@ disksize(int fd, int dev)
long l;
struct hd_geometry geo;
memset(&geo, 0, sizeof geo);
l = 0;
u64 = 0;
#ifdef BLKGETSIZE64
if(ioctl(fd, BLKGETSIZE64, &u64) >= 0)
return u64;