Commit 21b3563d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mem: Make av_strdup allocate using av_realloc
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents a7e30064 d433e1ae
......@@ -258,7 +258,7 @@ char *av_strdup(const char *s)
char *ptr = NULL;
if (s) {
int len = strlen(s) + 1;
ptr = av_malloc(len);
ptr = av_realloc(NULL, 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