mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:35:06 -05:00
Some libc calls like memcpy() expect the pointer to be valid even when the size is zero and there is nothing to do. Instead of checking the size before all such calls, modify ARR_GetElements() to return a pointer to the array instance itself if data was not allocated yet.
3.0 KiB
3.0 KiB