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:
Fred Gleason 2018-08-11 22:14:00 +00:00
parent e1e88d60a3
commit 3d99fb9a87
2 changed files with 9 additions and 2 deletions

View File

@ -17362,3 +17362,6 @@
2018-08-11 Fred Gleason <fredg@paravelsystems.com>
* Added a rule to remove stale moc(1) files in
'web/webget/Makefile.am'.
2018-08-11 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rddbmgr(8) that could cause segfaults when
determining the current schema verion.

View File

@ -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();
}
}
}