Merge declaratio and initialization.

Originally committed as revision 12677 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-04-03 19:20:32 +00:00
parent 11362767b8
commit ed0d3048c0
1 changed files with 1 additions and 2 deletions

View File

@ -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);