mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-25 23:00:21 +01:00
2018-08-11 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rddbmgr(8) that could cause segfaults when determining the current schema verion.
This commit is contained in:
@@ -54,8 +54,12 @@ VersionString::VersionString(const char *str)
|
||||
{
|
||||
QStringList f0=f0.split(".",str);
|
||||
ver_major=f0[0].toInt();
|
||||
ver_minor=f0[1].toInt();
|
||||
ver_point=f0[2].toInt();
|
||||
if(f0.size()>=2) {
|
||||
ver_minor=f0[1].toInt();
|
||||
if(f0.size()>=3) {
|
||||
ver_point=f0[2].toInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user