small fix, possible segfault in hddmenu

This commit is contained in:
defans
2013-11-09 13:00:53 +01:00
committed by svenhoefer
parent 5324c57a38
commit 9b71f720ea

View File

@@ -161,6 +161,7 @@ int CHDDMenuHandler::doMenu ()
std::string tmp_str[n];
CMenuWidget * tempMenu[n];
for(int i = 0; i < n;i++) {
tempMenu[i] = NULL;
char str[256];
char sstr[256];
char vendor[128], model[128];