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

Add xcalloc(). Do not use this in new code!

parent 7f9c85e5
......@@ -870,6 +870,14 @@ static inline void *xrealloc (void *ptr, size_t len)
return nptr;
static inline void *xcalloc (size_t n, size_t size)
void *ptr = calloc (n, size);
if (unlikely (ptr == NULL))
abort ();
return ptr;
* libvlc features
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment