Commit fe5605fa authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove dead code (CID #2)

parent 93198986
......@@ -828,17 +828,9 @@ static int OpenVCDImage( vlc_object_t * p_this, const char *psz_dev,
{
/* psz_dev must be the cue file. Let's assume there's a .bin
* file with the same filename */
if( p_pos )
{
psz_vcdfile = malloc( p_pos - psz_dev + 5 /* ".bin" */ );
strncpy( psz_vcdfile, psz_dev, p_pos - psz_dev );
strcpy( psz_vcdfile + (p_pos - psz_dev), ".bin");
}
else
{
psz_vcdfile = malloc( strlen(psz_dev) + 5 /* ".bin" */ );
sprintf( psz_vcdfile, "%s.bin", psz_dev );
}
psz_vcdfile = malloc( p_pos - psz_dev + 5 /* ".bin" */ );
strncpy( psz_vcdfile, psz_dev, p_pos - psz_dev );
strcpy( psz_vcdfile + (p_pos - psz_dev), ".bin");
psz_cuefile = strdup( psz_dev );
}
else
......
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