mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-28 07:54:49 +03:00
Use _tclosedir rather than closedir.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
f2b9bc6d0d
commit
6b3ac8c685
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue