From 055996fc2e919a07cdb9faf19619b8f8c20d1588 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 10 Oct 2014 12:15:48 -0700 Subject: [PATCH] closedir() replacement function should return a result return success, ignoring result of FindClose --- libraries/liblutil/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/liblutil/utils.c b/libraries/liblutil/utils.c index 66e4e9a05c..310380b623 100644 --- a/libraries/liblutil/utils.c +++ b/libraries/liblutil/utils.c @@ -437,8 +437,9 @@ struct dirent *readdir(DIR *dir) } int closedir(DIR *dir) { - FindClose(dir->dir); + (void) FindClose(dir->dir); ber_memfree(dir); + return 0; } #endif -- 2.39.5