mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Replace incorrect fclose() call with pclose()
This commit is contained in:
parent
9d5e5cd832
commit
5d96196f08
@ -47,7 +47,8 @@ std::vector<String> icinga::GetBashCompletionSuggestions(const String& type, con
|
||||
boost::algorithm::trim_right_if(wline, boost::is_any_of("\r\n"));
|
||||
result.push_back(wline);
|
||||
}
|
||||
fclose(fp);
|
||||
|
||||
pclose(fp);
|
||||
|
||||
/* Append a slash if there's only one suggestion and it's a directory */
|
||||
if ((type == "file" || type == "directory") && result.size() == 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user