satisfy valgrind
This commit is contained in:
parent
a3ad5254ee
commit
ceecb31310
1 changed files with 3 additions and 0 deletions
|
|
@ -53,6 +53,9 @@ disksize(int fd, int dev)
|
||||||
long l;
|
long l;
|
||||||
struct hd_geometry geo;
|
struct hd_geometry geo;
|
||||||
|
|
||||||
|
memset(&geo, 0, sizeof geo);
|
||||||
|
l = 0;
|
||||||
|
u64 = 0;
|
||||||
#ifdef BLKGETSIZE64
|
#ifdef BLKGETSIZE64
|
||||||
if(ioctl(fd, BLKGETSIZE64, &u64) >= 0)
|
if(ioctl(fd, BLKGETSIZE64, &u64) >= 0)
|
||||||
return u64;
|
return u64;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue