Commit 620b1e7e authored by Martin Storsjö's avatar Martin Storsjö

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

This makes the behaviour consistent between debug and release mode.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 54677422
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment