diff --git a/OSBindings/SDL/main.cpp b/OSBindings/SDL/main.cpp index 309eb725a..2231268c8 100644 --- a/OSBindings/SDL/main.cpp +++ b/OSBindings/SDL/main.cpp @@ -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 pipe(popen(command, "r"));