mirror of https://git.ffmpeg.org/ffmpeg.git
Merge declaratio and initialization.
Originally committed as revision 12677 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
11362767b8
commit
ed0d3048c0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue