From 11e0b5e5a79575fe3be017939c35e5b4cd0d4242 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Fri, 15 May 2009 23:20:15 +0200 Subject: [PATCH] Do not call EnsureUTF8 on NULL string (cdtext). --- modules/access/vcd/cdrom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/access/vcd/cdrom.c b/modules/access/vcd/cdrom.c index 10c5a7db98..22b29de37c 100644 --- a/modules/access/vcd/cdrom.c +++ b/modules/access/vcd/cdrom.c @@ -1330,7 +1330,8 @@ static int CdTextParse( vlc_meta_t ***ppp_tracks, int *pi_tracks, for( int i = 0; i <= i_track_last; i++ ) { /* */ - EnsureUTF8( pppsz_info[i][j] ); + if( pppsz_info[i][j] ) + EnsureUTF8( pppsz_info[i][j] ); /* */ const char *psz_default = pppsz_info[0][j]; -- 2.20.1