summaryrefslogtreecommitdiffstats
path: root/bftw.c
diff options
context:
space:
mode:
Diffstat (limited to 'bftw.c')
-rw-r--r--bftw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bftw.c b/bftw.c
index e76ca09..ce3a567 100644
--- a/bftw.c
+++ b/bftw.c
@@ -545,6 +545,7 @@ static struct bftw_dir *bftw_queue_pop(struct bftw_queue *queue) {
/** Destroy a bftw_queue. */
static void bftw_queue_destroy(struct bftw_queue *queue) {
+ assert(queue->size == 0);
free(queue->buffer);
}