1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

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