UAVCAN was closding directory using the wrong pointer

This commit is contained in:
Peter van der Perk
2022-09-10 21:24:57 +02:00
parent 93ed66cf98
commit 06d85a464e
+2 -2
View File
@@ -214,8 +214,8 @@ void UavcanServers::migrateFWFromRoot(const char *sd_path, const char *sd_root_p
}
}
if (dev_dirent != nullptr) {
(void)closedir(dev_dirent);
if (sd_root_dir != nullptr) {
(void)closedir(sd_root_dir);
}
}