18 Jun
2023
18 Jun
'23
12:51 a.m.
On Sun Jun 18 00:46:24 2023 +0000, Erich Hoover wrote:
Wine might not care, but that won't work on all platforms (I have been burned by that before). I'm afraid that `malloc(0)` is even less likely to work in all CRT implementations. `realloc(NULL, size)` where size > 0 at least has the advantage of being required to work according to all versions of the C standard. In any case, it definitely works in Wine's msvcrt.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3089#note_36039