diff options
author | rsc <devnull@localhost> | 2004-06-09 14:13:49 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-06-09 14:13:49 +0000 |
commit | ceecb313104a9ee14c0defcd697ba6bfb802b015 (patch) | |
tree | 389712f4254b3c829287629257c733dd7742035d | |
parent | a3ad5254ee22b8aeb217a40f4c2fb602a4480906 (diff) | |
download | plan9port-ceecb313104a9ee14c0defcd697ba6bfb802b015.tar.gz plan9port-ceecb313104a9ee14c0defcd697ba6bfb802b015.tar.bz2 plan9port-ceecb313104a9ee14c0defcd697ba6bfb802b015.zip |
satisfy valgrind
-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; |