From 620b1e7e989e71825858c621fa96a7e0a742d239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 11 Apr 2012 10:33:43 +0300 Subject: [PATCH] mem: Don't abort on av_malloc(0) in debug mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes the behaviour consistent between debug and release mode. Signed-off-by: Martin Storsjö --- libavutil/mem.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavutil/mem.c b/libavutil/mem.c index 0fe9f5422a..3769da7d21 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -68,8 +68,6 @@ void *av_malloc(size_t size) long diff; #endif - assert(size); - /* let's disallow possible ambiguous cases */ if (size > (INT_MAX-32) || !size) return NULL;