Commit 02646ef3 authored by michael's avatar michael

Merge declaratio and initialization.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12677 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dee60089
...@@ -140,8 +140,7 @@ void *av_mallocz(unsigned int size) ...@@ -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);
......
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