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

stream_access: add unlikely

parent bf4d99af
......@@ -198,7 +198,7 @@ stream_t *stream_AccessNew( access_t *p_access )
p_access->psz_location ) == -1 )
s->psz_url = NULL;
s->p_sys = p_sys = malloc( sizeof( *p_sys ) );
if( !s->psz_url || !s->p_sys )
if( unlikely(s->psz_url == NULL || s->p_sys == NULL) )
{
free( s->p_sys );
stream_CommonDelete( s );
......
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