diff options
author | rsc <devnull@localhost> | 2006-04-20 20:51:01 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-20 20:51:01 +0000 |
commit | 71e936d7166b088aa3e2ec55d14b53cb2a3ac5ec (patch) | |
tree | edff53d0d4b39e1c60e5c3e7e8fda6fb739c1a05 /src/cmd/tapefs | |
parent | 2c0f3733ade43a38576aec82eced8768b42f9980 (diff) | |
download | plan9port-71e936d7166b088aa3e2ec55d14b53cb2a3ac5ec.tar.gz plan9port-71e936d7166b088aa3e2ec55d14b53cb2a3ac5ec.tar.bz2 plan9port-71e936d7166b088aa3e2ec55d14b53cb2a3ac5ec.zip |
shut up, gcc!
Diffstat (limited to 'src/cmd/tapefs')
-rw-r--r-- | src/cmd/tapefs/32vfs.c | 1 | ||||
-rw-r--r-- | src/cmd/tapefs/v10fs.c | 1 | ||||
-rw-r--r-- | src/cmd/tapefs/v6fs.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/tapefs/32vfs.c b/src/cmd/tapefs/32vfs.c index 55d5dbe0..c273bcf4 100644 --- a/src/cmd/tapefs/32vfs.c +++ b/src/cmd/tapefs/32vfs.c @@ -152,6 +152,7 @@ iget(int ino) long flags, i; Fileinf f; + memset(&f, 0, sizeof f); seek(tapefile, BLSIZE*((ino-1)/LINOPB + VSUPERB + 1), 0); if (read(tapefile, buf, BLSIZE) != BLSIZE) error("Can't read inode"); diff --git a/src/cmd/tapefs/v10fs.c b/src/cmd/tapefs/v10fs.c index 64e6edd4..a2f546cd 100644 --- a/src/cmd/tapefs/v10fs.c +++ b/src/cmd/tapefs/v10fs.c @@ -152,6 +152,7 @@ iget(int ino) long flags, i; Fileinf f; + memset(&f, 0, sizeof f); seek(tapefile, BLSIZE*((ino-1)/LINOPB + VSUPERB + 1), 0); if (read(tapefile, buf, BLSIZE) != BLSIZE) error("Can't read inode"); diff --git a/src/cmd/tapefs/v6fs.c b/src/cmd/tapefs/v6fs.c index 46669de5..648c2128 100644 --- a/src/cmd/tapefs/v6fs.c +++ b/src/cmd/tapefs/v6fs.c @@ -153,6 +153,7 @@ iget(int ino) long flags, i; Fileinf f; + memset(&f, 0, sizeof f); seek(tapefile, BLSIZE*((ino-1)/LINOPB + V6SUPERB + 1), 0); if (read(tapefile, buf, BLSIZE) != BLSIZE) error("Can't read inode"); |