]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/fd-util.h
tree-wide: reset the cleaned-up variable in cleanup functions
[thirdparty/systemd.git] / src / basic / fd-util.h
index 2162537b80889e2776a9018b93b728565a110b8f..f05c2b5a15dc7ab6a03a96535c6b74d6f5d9af4d 100644 (file)
@@ -41,8 +41,8 @@ static inline void fclosep(FILE **f) {
         safe_fclose(*f);
 }
 
-DEFINE_TRIVIAL_CLEANUP_FUNC(FILE*, pclose);
-DEFINE_TRIVIAL_CLEANUP_FUNC(DIR*, closedir);
+DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(FILE*, pclose, NULL);
+DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(DIR*, closedir, NULL);
 
 #define _cleanup_close_ _cleanup_(closep)
 #define _cleanup_fclose_ _cleanup_(fclosep)