Use _tclosedir rather than closedir.

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Klaas Freitag 2012-11-13 11:45:12 +01:00 committed by Andreas Schneider
parent f2b9bc6d0d
commit 6b3ac8c685

View file

@ -124,7 +124,7 @@ int c_rmdirs(const char *path) {
len = strlen(path) + strlen(rd_name) + 2;
fname = c_malloc(len);
if (fname == NULL) {
closedir(d);
_tclosedir(d);
return -1;
}
snprintf(fname, len, "%s/%s", path, rd_name);