From 3fee601766520a015d8c7d1d1ca0c247b0815fe4 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Fri, 12 Feb 2021 15:11:14 -0500 Subject: [PATCH] 2021-02-12 Fred Gleason * Fixed a regression in rdcatchd(8) that caused segfaults upon startup. Signed-off-by: Fred Gleason --- ChangeLog | 4 ++++ rdcatchd/rdcatchd.cpp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 264e770d..51a0c7e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21106,3 +21106,7 @@ * Added a check for scheduler code rules to rddbmgr(8). * Refactored the 'Scheduler Rules' dialog in rdlogmanager(1) to use the model based API. +2021-02-12 Fred Gleason + * Fixed a regression in rdcatchd(8) that caused segfaults upon + startup. + diff --git a/rdcatchd/rdcatchd.cpp b/rdcatchd/rdcatchd.cpp index 3c92c4e4..49507d90 100644 --- a/rdcatchd/rdcatchd.cpp +++ b/rdcatchd/rdcatchd.cpp @@ -162,7 +162,8 @@ MainObject::MainObject(QObject *parent) // // Open the Database // - rda=new RDApplication("rdcatchd","rdcatchd",RDCATCHD_USAGE,this); + rda=static_cast(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);