Changeset 36db7779d3f5748b1ec2adb82d62e0cfdb254aac

Show
Ignore:
Timestamp:
14/08/08 12:51:53 (4 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1218711113 +0200
git-parent:

[932c5181edcd3906232ffc7609ce85d715dd69a4]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1218711113 +0200
Message:

cdda: asprintf checks.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/access/cdda/info.c

    r932c518 r36db777  
    905905        vlc_input_title_New(); 
    906906 
    907         if( asprintf( &t->psz_name, _("Track %i"), i_track ) == -1 ) 
     907        if( asprintf( &t->psz_name, _("Track %i"), i_track ) == -1 ) 
    908908            t->psz_name = NULL; 
    909909        t->i_size = i_track_frames * (int64_t) CDIO_CD_FRAMESIZE_RAW; 
     
    937937            t = p_cdda->p_title[i] = vlc_input_title_New(); 
    938938 
    939             if( asprintf( &t->psz_name, _("Track %i"), i_track )
     939            if( asprintf( &t->psz_name, _("Track %i"), i_track ) == -1
    940940                t->psz_name = NULL; 
    941941            t->i_size = i_track_frames * (int64_t) CDIO_CD_FRAMESIZE_RAW;