aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/dirread.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-12-09 06:37:26 +0000
committerrsc <devnull@localhost>2003-12-09 06:37:26 +0000
commite95a70884b2eb361e0e879a91e5b46aea4e1d633 (patch)
treee55b66f6f86f9f49735b35dbc6578f6768dd0f8b /src/lib9/dirread.c
parentceb04770830a7610a5a9a21aa96a4ba4cece2a5d (diff)
downloadplan9port-e95a70884b2eb361e0e879a91e5b46aea4e1d633.tar.gz
plan9port-e95a70884b2eb361e0e879a91e5b46aea4e1d633.tar.bz2
plan9port-e95a70884b2eb361e0e879a91e5b46aea4e1d633.zip
Bug fixes from the Valgrind oracle.
Diffstat (limited to 'src/lib9/dirread.c')
-rw-r--r--src/lib9/dirread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c
index 4105e878..db80c357 100644
--- a/src/lib9/dirread.c
+++ b/src/lib9/dirread.c
@@ -11,6 +11,7 @@ static int
mygetdents(int fd, struct dirent *buf, int n)
{
off_t off;
+ int nn;
off = p9seek(fd, 0, 1);
nn = getdirentries(fd, (void*)buf, n, &off);