From c0375e614abe5bb8a51bf0bf74162176f13aaaac Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Mon, 4 Jun 2012 23:00:13 -0700 Subject: [PATCH] Timeline: Fix null pointer derefrence when copying sequence points. --- timeline/src/Sequence_Point.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/timeline/src/Sequence_Point.C b/timeline/src/Sequence_Point.C index 272e40e..c8e52d7 100644 --- a/timeline/src/Sequence_Point.C +++ b/timeline/src/Sequence_Point.C @@ -25,8 +25,10 @@ Sequence_Point::Sequence_Point ( const Sequence_Point &rhs ) : Sequence_Widget( rhs ) { - if ( _label ) + if ( rhs._label ) _label = strdup( rhs._label ); + else + _label = 0; } Sequence_Point::Sequence_Point ( )