summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dir.c b/dir.c
index 0a2efbb..d54d043 100644
--- a/dir.c
+++ b/dir.c
@@ -357,6 +357,7 @@ file_impossible (filename)
xmalloc (sizeof (struct directory_contents));
dir->contents->dev = dir->contents->ino = 0;
dir->contents->files = 0;
+ dir->contents->dirstream = 0;
}
if (dir->contents->files == 0)
@@ -545,6 +546,8 @@ read_dirstream (stream)
}
ds->elt = ds->contents->files[++ds->bucket];
}
+
+ return 0;
}
void