aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-04-03 19:20:32 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-04-03 19:20:32 +0000
commited0d3048c0591333b9aeac4a330869c9ec02d639 (patch)
tree6f05091c27a0eea3ad62427d93fac4a85885a5e2 /libavutil
parent11362767b80161603e4f366a8cefba78c5b8d102 (diff)
downloadffmpeg-ed0d3048c0591333b9aeac4a330869c9ec02d639.tar.gz
Merge declaratio and initialization.
Originally committed as revision 12677 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/mem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c
index 4e654b044c..8062ae81cb 100644
--- 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);