array: Avoid use of memcpy(dest, NULL, 0)
array: Avoid use of memcpy(dest, NULL, 0)

glibc declares memcpy() with the first two arguments (the pointers)
annotated as non-null via an attribute, which results in the undefined
behaviour sanitizer considering it to be UB to pass a null pointer
in the second argument, even if we are copying 0 bytes (and hence not
actually dereferencing the pointer).

This shows up in array-test when run with the undefined behaviour
sanitizer.

Signed-off-by: Simon McVittie <0e1aea601907c1a85c2dc96e5ea37e23c58d2e9b@collabora.com>

endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib,endlessm/glib