Timeline: Fix null pointer derefrence when copying sequence points.
This commit is contained in:
parent
2af46a1a0c
commit
c0375e614a
|
@ -25,8 +25,10 @@
|
||||||
|
|
||||||
Sequence_Point::Sequence_Point ( const Sequence_Point &rhs ) : Sequence_Widget( rhs )
|
Sequence_Point::Sequence_Point ( const Sequence_Point &rhs ) : Sequence_Widget( rhs )
|
||||||
{
|
{
|
||||||
if ( _label )
|
if ( rhs._label )
|
||||||
_label = strdup( rhs._label );
|
_label = strdup( rhs._label );
|
||||||
|
else
|
||||||
|
_label = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Sequence_Point::Sequence_Point ( )
|
Sequence_Point::Sequence_Point ( )
|
||||||
|
|
Loading…
Reference in New Issue