1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-05 21:32:55 +00:00

Correct parameter usage.

This commit is contained in:
Thomas Harte 2024-10-15 21:54:04 -04:00
parent b701ce9721
commit d35165bd8e

View File

@ -446,7 +446,7 @@ std::string final_path_component(const std::string &path) {
std::string system_get(const char *command) {
struct pcloser {
void operator()(FILE *file) {
pclose(dir);
pclose(file);
}
};
std::unique_ptr<FILE, pcloser> pipe(popen(command, "r"));