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:
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
Block a user