[vlc-devel] commit: Chek asprintf return value. ( Rémi Duraffort )
Pierre d'Herbemont
pdherbemont at free.fr
Thu Aug 14 01:23:58 CEST 2008
On Aug 14, 2008, at 12:25 AM, git version control wrote:
> vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu
> Aug 14 00:25:01 2008 +0200|
> [312716154a86f3557db9814e9a081119426a1df1] | committer: Rémi Duraffort
>
> Chek asprintf return value.
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=312716154a86f3557db9814e9a081119426a1df1
> ---
>
> modules/access/cdda/info.c | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/modules/access/cdda/info.c b/modules/access/cdda/info.c
> index 0286446..09bd0cf 100644
> --- a/modules/access/cdda/info.c
> +++ b/modules/access/cdda/info.c
> @@ -904,7 +904,8 @@ CDDAFixupPlaylist( access_t *p_access,
> cdda_data_t *p_cdda,
> input_title_t *t = p_cdda->p_title[0] = //i_track-
> i_first_track] =
> vlc_input_title_New();
>
> - asprintf( &t->psz_name, _("Track %i"), i_track );
> + if( asprintf( &t->psz_name, _("Track %i"), i_track ) )
I guess there is a typo here... (misses == -1)
Pierre.
More information about the vlc-devel
mailing list