-
-/*
- * crawl_folders.c -- crawl folder hierarchy
+/* crawl_folders.c -- crawl folder hierarchy
*
* This code is Copyright (c) 2008, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
int max; /* how many folders we currently can hold in
* the array `folders', increased by
* CRAWL_NUMFOLDERS at a time */
- int total; /* how many `folders' actually has */
char **folders; /* the array of folders */
int start;
int foldp;
return;
}
- crawl->total++;
crawl->folders[crawl->foldp++] = fold;
}
struct crawl_context *crawl;
NEW(crawl);
crawl->max = CRAWL_NUMFOLDERS;
- crawl->total = crawl->start = crawl->foldp = 0;
+ crawl->start = crawl->foldp = 0;
crawl->folders = mh_xmalloc (crawl->max * sizeof(*crawl->folders));
crawl_folders_body (crawl, dir, callback, baton);