Make sure we don't call memcpy() with NULL pointer
commitb83c5e408a25b05bd779719d25173f668005f88a
authorJiří Zárevúcky <zarevucky.jiri@gmail.com>
Wed, 18 Jan 2023 20:15:42 +0000 (18 21:15 +0100)
committerJiří Zárevúcky <zarevucky.jiri@gmail.com>
Wed, 18 Jan 2023 20:15:42 +0000 (18 21:15 +0100)
tree8083013de4771ad3cc81055edf602c3a25ecf72a
parent3e7e226a0e5b93d6726bac895c01e4139158b496
Make sure we don't call memcpy() with NULL pointer

The standard requires the pointer is valid even when size is 0,
and this triggers diagnostics in some checkers.
uspace/lib/c/generic/rtld/rtld.c