Commit 3696f331 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

text_segment: Allow a segment to be created with NULL text

parent 1cc34d8a
......@@ -100,7 +100,8 @@ text_segment_t *text_segment_New( const char *psz_text )
if( !segment )
return NULL;
segment->psz_text = strdup( psz_text );
if ( psz_text )
segment->psz_text = strdup( psz_text );
return segment;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment