Skip to content
Snippets Groups Projects
Commit 620b1e7e authored by Martin Storsjö's avatar Martin Storsjö
Browse files

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


This makes the behaviour consistent between debug and release mode.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 54677422
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment