Commit 91ff05f6 authored by Michael Niedermayer's avatar Michael Niedermayer

Make av_realloc(0) behave like our av_malloc(0)

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ea7f73c5
...@@ -132,7 +132,7 @@ void *av_realloc(void *ptr, size_t size) ...@@ -132,7 +132,7 @@ void *av_realloc(void *ptr, size_t size)
diff= ((char*)ptr)[-1]; diff= ((char*)ptr)[-1];
return (char*)realloc((char*)ptr - diff, size + diff) + diff; return (char*)realloc((char*)ptr - diff, size + diff) + diff;
#else #else
return realloc(ptr, size); return realloc(ptr, size + !size);
#endif #endif
} }
......
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