Fix crash in UnameHelper()

fixes #11714
This commit is contained in:
Gunnar Beutner 2016-05-10 09:44:41 +02:00
parent f2e6694179
commit 7f8a921f53
1 changed files with 4 additions and 1 deletions

View File

@ -1435,6 +1435,9 @@ static String UnameHelper(char type)
FILE *fp = popen(cmd, "r");
if (!fp)
return "Unknown";
char line[1024];
std::ostringstream msgbuf;
@ -1892,4 +1895,4 @@ String Utility::GetIcingaDataPath(void)
return String(path) + "\\icinga2";
}
#endif /* _WIN32 */
#endif /* _WIN32 */