mem: Don't abort on av_malloc(0) in debug mode
authorMartin Storsjö <martin@martin.st>
Wed, 11 Apr 2012 07:33:43 +0000 (10:33 +0300)
committerMartin Storsjö <martin@martin.st>
Tue, 10 Jul 2012 08:37:03 +0000 (11:37 +0300)
This makes the behaviour consistent between debug and release mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/mem.c

index 0fe9f54..3769da7 100644 (file)
@@ -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;