]> git.sesse.net Git - vlc/blobdiff - src/extras/libc.c
Do not assert memory allocations
[vlc] / src / extras / libc.c
index 60c7139abfca8695a6635397cf6457a5463a11cd..e55f51a775b2a03b08c8aae9a67cf59fa8865a77 100644 (file)
@@ -47,9 +47,8 @@
 #   include <dirent.h>
 #endif
 
-#include <signal.h>
-
 #ifdef HAVE_FORK
+#   include <signal.h>
 #   include <sys/time.h>
 #   include <unistd.h>
 #   include <errno.h>
@@ -866,7 +865,7 @@ int __vlc_execve( vlc_object_t *p_object, int i_argc, char *const *ppsz_argv,
               || i_read == 0 )
             break;
         *pi_data += i_read;
-        *pp_data = realloc( *pp_data, *pi_data + 1025 );
+        *pp_data = xrealloc( *pp_data, *pi_data + 1025 );
     }
 
     while ( !p_object->b_die