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:
1136276
)
Merge declaratio and initialization.
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 3 Apr 2008 19:20:32 +0000
(19:20 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 3 Apr 2008 19:20:32 +0000
(19:20 +0000)
Originally committed as revision 12677 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/mem.c
patch
|
blob
|
history
diff --git
a/libavutil/mem.c
b/libavutil/mem.c
index
4e654b0
..
8062ae8
100644
(file)
--- a/
libavutil/mem.c
+++ b/
libavutil/mem.c
@@
-140,8
+140,7
@@
void *av_mallocz(unsigned int size)
char *av_strdup(const char *s)
{
char *ptr;
- int len;
- len = strlen(s) + 1;
+ int len = strlen(s) + 1;
ptr = av_malloc(len);
if (ptr)
memcpy(ptr, s, len);