2021-02-12 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdcatchd(8) that caused segfaults upon
	startup.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-02-12 15:11:14 -05:00
parent f1703ba647
commit 3fee601766
2 changed files with 6 additions and 1 deletions

View File

@@ -162,7 +162,8 @@ MainObject::MainObject(QObject *parent)
//
// Open the Database
//
rda=new RDApplication("rdcatchd","rdcatchd",RDCATCHD_USAGE,this);
rda=static_cast<RDApplication *>(new RDCoreApplication("rdcatchd","rdcatchd",
RDCATCHD_USAGE,this));
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"rdcatchd: %s\n",(const char *)err_msg);
exit(1);