Fix crash in UnameHelper()

fixes #11714
This commit is contained in:
Gunnar Beutner 2016-05-10 09:44:41 +02:00
parent 1fb378ef4a
commit eab2fb79ad

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 */