Commit ed0d3048 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge declaratio and initialization.

Originally committed as revision 12677 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 11362767
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment