2019-03-14 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdairplay(1) that could throw a segfault when
	moving a log event to the end of a log.
This commit is contained in:
Fred Gleason
2019-03-14 17:13:38 -04:00
parent 9dfdd87c5d
commit 25d0f414c4
2 changed files with 4 additions and 1 deletions

View File

@@ -376,7 +376,7 @@ int RDLogEvent::size() const
void RDLogEvent::insert(int line,int num_lines,bool preserve_trans)
{
if(!preserve_trans) {
if(line>0) {
if(log_line[line-1]!=NULL) {
log_line[line-1]->setEndPoint(-1,RDLogLine::LogPointer);
log_line[line-1]->setSegueStartPoint(-1,RDLogLine::LogPointer);
log_line[line-1]->setSegueEndPoint(-1,RDLogLine::LogPointer);