Commit 645d5775 authored by Rémi Duraffort's avatar Rémi Duraffort

We don't need size here to check asprintf value.

parent e422c3b5
......@@ -113,13 +113,13 @@ void CacheLoad( vlc_object_t *p_this )
return;
}
i_size = asprintf( &psz_filename, "%s"DIR_SEP"%s",
psz_cachedir, CacheName() );
free( psz_cachedir );
if( i_size <= 0 )
if( asprintf( &psz_filename, "%s"DIR_SEP"%s",
psz_cachedir, CacheName() == -1 ) )
{
free( psz_cachedir );
return;
}
free( psz_cachedir );
if( p_libvlc_global->p_module_bank->b_cache_delete )
{
......
......@@ -131,7 +131,6 @@ void osd_Message( spu_t *p_spu, int i_channel,
va_start( args, psz_format );
if( vasprintf( &psz_string, psz_format, args ) != -1 )
{
osd_ShowTextRelative( p_spu, i_channel, psz_string, NULL,
OSD_ALIGN_TOP|OSD_ALIGN_RIGHT, 30,20,1000000 );
......
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