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)
diff= ((char*)ptr)[-1];
return (char*)realloc((char*)ptr - diff, size + diff) + diff;
#else
return realloc(ptr, size);
return realloc(ptr, size + !size);
#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