diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib9/_p9dir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c index 7c278a1f..5726969b 100644 --- a/src/lib9/_p9dir.c +++ b/src/lib9/_p9dir.c @@ -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; |