From ceecb313104a9ee14c0defcd697ba6bfb802b015 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 9 Jun 2004 14:13:49 +0000 Subject: [PATCH] satisfy valgrind --- src/lib9/_p9dir.c | 3 +++ 1 file changed, 3 insertions(+) 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;