1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-08 13:22:53 +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 *av_strdup(const char *s)
{ {
char *ptr; char *ptr;
int len; int len = strlen(s) + 1;
len = strlen(s) + 1;
ptr = av_malloc(len); ptr = av_malloc(len);
if (ptr) if (ptr)
memcpy(ptr, s, len); memcpy(ptr, s, len);