Fix a possibly uninitialized variable.

This commit is contained in:
Andrius Štikonas 2018-01-31 14:58:43 +00:00
parent 2534608094
commit 7e8f64ffd7
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ static QLatin1String getPartitionType(FileSystem::Type t, PartitionTable::TableT
type = 1; type = 1;
break; break;
default:; default:;
return QLatin1String();
} }
for (quint32 i = 0; i < sizeof(typemap) / sizeof(typemap[0]); i++) for (quint32 i = 0; i < sizeof(typemap) / sizeof(typemap[0]); i++)
if (typemap[i].type == t) if (typemap[i].type == t)