]> git.sesse.net Git - vlc/blobdiff - modules/control/rc.c
Do not assert memory allocations
[vlc] / modules / control / rc.c
index cf69965ac698c5bc97f7530a82355344a11f98d9..d57151b1e222c92b1557db12386b28b9d6b2a2a0 100644 (file)
 # include "config.h"
 #endif
 
-#include <assert.h>
-
 #include <vlc_common.h>
 #include <vlc_plugin.h>
-#include <vlc_memory.h>
 
 #include <errno.h>                                                 /* ENOMEM */
 #include <ctype.h>
@@ -2109,9 +2106,7 @@ static input_item_t *parse_MRL( intf_thread_t *p_intf, char *psz_mrl )
         else if( *psz_item )
         {
             i_options++;
-            ppsz_options = realloc_or_free( ppsz_options,
-                                            i_options * sizeof(char *) );
-            assert( ppsz_options );
+            ppsz_options = xrealloc( ppsz_options, i_options * sizeof(char *) );
             ppsz_options[i_options - 1] = &psz_item[1];
         }