2019-09-25 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rddbmgr(8) that caused a segfault when processing
	a SQL error.
This commit is contained in:
Fred Gleason 2019-09-25 16:47:21 -04:00
parent cd80ab3004
commit cc3dc06b4a
2 changed files with 9 additions and 2 deletions

View File

@ -19119,3 +19119,6 @@
* Incremented the package version to 3.0.3int3.
2019-09-19 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 3.1.0.
2019-09-25 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rddbmgr(8) that caused a segfault when processing
a SQL error.

View File

@ -59,7 +59,9 @@ RDSqlQuery::RDSqlQuery (const QString &query,bool reconnect):
}
fprintf(stderr,"%s\n",(const char *)err);
rda->syslog(LOG_ERR,(const char *)err);
if(rda!=NULL) {
rda->syslog(LOG_ERR,(const char *)err);
}
}
if(isActive()) {
@ -84,7 +86,9 @@ RDSqlQuery::RDSqlQuery (const QString &query,bool reconnect):
+"["+lastError().text()+"]: "+query;
fprintf(stderr,"%s\n",(const char *)err);
rda->syslog(LOG_ERR,(const char *)err);
if(rda!=NULL) {
rda->syslog(LOG_ERR,(const char *)err);
}
}
}