projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5467742
)
mem: Don't abort on av_malloc(0) in debug mode
author
Martin Storsjö
<martin@martin.st>
Wed, 11 Apr 2012 07:33:43 +0000
(10:33 +0300)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/libavutil/mem.c
b/libavutil/mem.c
index
0fe9f54
..
3769da7
100644
(file)
--- 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;