https://bugs.kde.org/show_bug.cgi?id=436413

--- Comment #6 from Paul Floyd <pjfl...@wanadoo.fr> ---
The precise wording of the C17 standard is [7.22.3.5 The realloc function para
3]

If size is zero and memory for the new object is not allocated, it is
implementation-defined whether the old object is deallocated. If the old object
is not deallocated, its value shall be unchanged.

I take that to mean two things are possible.
1. A non-zero sized non-dereferenceable block is rerturned and the old memory
is freed
2. No memory is allocated and the old memory may or may not be freed.

In any case if the memory is not freed then the pointer isn't changed.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to