Commit ed9350a3 authored by Pierre Ynard's avatar Pierre Ynard

oldrc: fix crash on memory error

parent 471c012a
...@@ -2061,6 +2061,8 @@ static input_item_t *parse_MRL( intf_thread_t *p_intf, char *psz_mrl ) ...@@ -2061,6 +2061,8 @@ static input_item_t *parse_MRL( intf_thread_t *p_intf, char *psz_mrl )
if( !psz_mrl ) return 0; if( !psz_mrl ) return 0;
psz_mrl = psz_orig = strdup( psz_mrl ); psz_mrl = psz_orig = strdup( psz_mrl );
if( !psz_mrl )
return NULL;
while( *psz_mrl ) while( *psz_mrl )
{ {
SKIPSPACE( psz_mrl ); SKIPSPACE( psz_mrl );
......
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