OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b7ca3b
)
Merge declaration and initialization.
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 3 Apr 2008 19:18:14 +0000
(19:18 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 3 Apr 2008 19:18:14 +0000
(19:18 +0000)
Originally committed as revision 12676 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/mem.c
patch
|
blob
|
history
diff --git
a/libavutil/mem.c
b/libavutil/mem.c
index
033fcd5
..
4e654b0
100644
(file)
--- a/
libavutil/mem.c
+++ b/
libavutil/mem.c
@@
-131,9
+131,7
@@
void av_freep(void *arg)
void *av_mallocz(unsigned int size)
{
- void *ptr;
-
- ptr = av_malloc(size);
+ void *ptr = av_malloc(size);
if (ptr)
memset(ptr, 0, size);
return ptr;