mem: Don't abort on av_malloc(0) in debug mode

This makes the behaviour consistent between debug and release mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
pull/59/head
Martin Storsjö 13 years ago
parent 5467742232
commit 620b1e7e98
  1. 2
      libavutil/mem.c

@ -68,8 +68,6 @@ void *av_malloc(size_t size)
long diff; long diff;
#endif #endif
assert(size);
/* let's disallow possible ambiguous cases */ /* let's disallow possible ambiguous cases */
if (size > (INT_MAX-32) || !size) if (size > (INT_MAX-32) || !size)
return NULL; return NULL;

Loading…
Cancel
Save