@__phantomderp ("Björkus "Fix It Or Die Trying" Dorkus") wrote:
"Standardize existing practice!"
No implementation does the same thing for realloc after C89/C99 and C17 fucked it up, and no implementation wants to change their behavior, so it's undefined behavior now.
"... Wait, not like that!"