diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-04-03 19:20:32 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-04-03 19:20:32 +0000 |
commit | ed0d3048c0591333b9aeac4a330869c9ec02d639 (patch) | |
tree | 6f05091c27a0eea3ad62427d93fac4a85885a5e2 | |
parent | 11362767b80161603e4f366a8cefba78c5b8d102 (diff) | |
download | ffmpeg-ed0d3048c0591333b9aeac4a330869c9ec02d639.tar.gz |
Merge declaratio and initialization.
Originally committed as revision 12677 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavutil/mem.c | 3 |
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); |