From: ddennedy Date: Sun, 8 Jun 2008 01:39:34 +0000 (+0000) Subject: MltPlaylist.cpp: prevent strdup from crashing on a null pointer. X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=a1887a6fbafe40ed98facbbaecc75706b7afed2d;p=melted MltPlaylist.cpp: prevent strdup from crashing on a null pointer. git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@1139 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/mlt++/src/MltPlaylist.cpp b/mlt++/src/MltPlaylist.cpp index 350e53b..30fba20 100644 --- a/mlt++/src/MltPlaylist.cpp +++ b/mlt++/src/MltPlaylist.cpp @@ -44,7 +44,7 @@ ClipInfo::ClipInfo( mlt_playlist_clip_info *info ) : producer( new Producer( info->producer ) ), cut( new Producer( info->cut ) ), start( info->start ), - resource( strdup( info->resource ) ), + resource( info->resource? strdup( info->resource ) : 0 ), frame_in( info->frame_in ), frame_out( info->frame_out ), frame_count( info->frame_count ),