aboutsummaryrefslogtreecommitdiff
path: root/src/libventi
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-13 03:58:11 +0000
committerrsc <devnull@localhost>2005-07-13 03:58:11 +0000
commit9c8fc12873460c9b8d390fe1c5aed9f03feb6029 (patch)
tree48ff504a2d3fc0ba8110e9329adfad7215185a0f /src/libventi
parente87f5d7cecb8226b950a492fa02d40f7070af972 (diff)
downloadplan9port-9c8fc12873460c9b8d390fe1c5aed9f03feb6029.tar.gz
plan9port-9c8fc12873460c9b8d390fe1c5aed9f03feb6029.tar.bz2
plan9port-9c8fc12873460c9b8d390fe1c5aed9f03feb6029.zip
zero unused io
Diffstat (limited to 'src/libventi')
-rw-r--r--src/libventi/packet.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libventi/packet.c b/src/libventi/packet.c
index 3ef1b1df..d3198939 100644
--- a/src/libventi/packet.c
+++ b/src/libventi/packet.c
@@ -612,7 +612,10 @@ packetfragments(Packet *p, IOchunk *io, int nio, int offset)
size += io->len;
io++;
}
-
+ for(; io < eio; io++){
+ io->addr = nil;
+ io->len = 0;
+ }
return size;
}